Dynamics Nav 2009 - API order save Date error - web-services

I am using the API to save new sales orders, and everytime I send a date as one of the parameteres, it returns me the following error message:
'2015-09-09+01:00' is not a valid date.
Any idea?
Thank you,
Bilel

The Date data type in NAV can not contain time data. Try using the DateTime data type instead. Be sure to correct the input format.
If you are not able to change the data type inside NAV, your best bet, as stated above, is to remove the time stamp from the date entered.

Related

How to pass a start and end date to a report in Data Studio?

I am using Google Data Studio to show reports for a specific date range.
The date range is dynamic, calculated by a previous step, and I want the Data Studio report to have its date range setting initialized to these dynamic values when the user loads the report.
I have already created a custom query which checks if a date is between #DS_START_DATE and #DS_END_DATE (the parameters provided by Data Studio from the date range control). This successfully returns a properly filtered list when set with the report control.
How do I set DS_START_DATE and DS_END_DATE from the query string of the report as an URL parameter? They do not show up in the list of allowable URL parameters. How else can I initialize the report with a specific date range that is calculated, not set by the user?
Thank you in advance.
You could filter your data from the parameters in the url. Create two parameters
dateStart
dateEnd
Use those parameters in your custom query instead of DS_START_DATE and DS_END_DATE.
For the date picker, choose "Auto date range". In your post, its not clear where you data is coming from, bigquery, googlesheet, firebase,etc. The auto date range might select the complete date range found in the returned data therefore showing the range you selected in the param in your url. It depends on the source of you data.
Then the date picker will filter within the returned data.

Error on setting Automatic Timezone in Oracle Apex

I make comparisons of the dates in my data (saved as "due dates" in my data table, as date data type ,without time) with current_date in many pages in my oracle apex application. For example I have one page where I show the "items due for today" in an interactive report by checking the due date of records for their equivalence with current_date, and similarly another page shows the items post due date. The SQL queries generate correct reports but the problem is that current date is calculated as per US (PDT/UCT7) time which is -9 hrs behind from my current region's time, therefore my pages show correct result on afternoon only.
I researched and discovered that setting the application timezone to automatic in application's globalization properties will solve this problem but when I do set the automatic timezone, my application stops working at all and . A "Set time zone" page shows for microsecond but without even letting the user set timezone, page redirects and shows the below error.
Any suggestion to fix this really serious issue will be highly appreciated :(
You mention that your dates are stored in a table of type DATE. Setting "Automatic Timezone" in your application will not change anything. It sets the database session time zone, which is used for columns of datatype "TIMESTAMP WITH LOCAL TIME ZONE". The datatype "DATE" does not know about time zones.
To ensure that your users see the same information is every region around the world, you should store your date information in a column of datatype "TIMESTAMP WITH LOCAL TIME ZONE". The "timezone sensitive" equivalent of SYSDATE is CURRENT_TIMESTAMP.
Joel Kallman wrote a blog about this a long time ago, describing this scenario.
https://joelkallman.blogspot.com/2010/09/automatic-time-zone-support-in.html

How do I restrict a report to only show current data

I'm brand new to Power BI and I'm used to setting up most of my data in SQL Server (for SSRS). I have a data set and I was able to add in a Calendar table with my dates. My goal is to do a Year-over-year comparison. I got the year-over-year part working with the help of a couple of tutorials, but I want to restrict the report output to only data up to the last end of month (otherwise the YoY shows a case differential for dates out into 2021 - not helpful). I need a dynamic filter and all I seem to be able to set are static filters. This filter needs to be on the data itself - nothing a user can or should touch. Any help would be appreciated.

Power BI - How to connect data with exact time in one dataset to a time range in other dataset

Please, could somebody help me with my problem?
I have many XML files with call logs and one excel file with attendance of operators.
XML file contains ID of the phone, date of the call and some other stuff.
Excel file contains ID of the phone, date of the attendance of the operator, time from, time to (when the operator started and finished work that day) and the operator's name.
What I need is to add a new column in the XML files in Power BI and type in the name of the operator who managed the call. So it should search somehow the ID of the phone with the date and then check if the time is older or equal to the time "from" and simultaneously that the time is younger or equal to the time "to". If everything meets the conditions, then it should type in the column "name" the name from the row which met the conditions.
Is that possible in Power BI somehow? If it is, may somebody navigate me how to do that?
I hope it is because I need to automate this process fully (with no manual step like preparing CSV files) so I would be able to create reports from the data.
Thank You!!!
Tereza

Passing Parameters in SSAS Reporting Action

I have a requirement to provide the detail information regarding Employee Sales shown in the cube in an SSRS report.
I have Employee Dimension, Transaction Dates and count of sales made. Requirement is to pass the Employee ID, Min Transaction Date, Max Transaction Date for the Employee to an SSRS report which will query the underlying fact /dimension table (NOT CUBE) and provide the detailed data.
I have set the Report Server And Path accurately and ensured that the parameter names match with that in the SSRS Report.
Just to establish the correctness of process I am trying to initially hard-code the EmployeeID,Startdate and EndDate in the SSAS Reporting Action Parameter List.
The Challenges I am Facing are as below :
I pass the EmployeeId as UrlEscapeFragment(Cstr(7070707)) and the report action is available on the cube , and opens the report , However the SSRS report does not use this parameter supplied in the URL.
I am unable to pass a date value to the report , I tried the same Syntax and UrlEscapeFragment(Cstr(1-Jan-2016)) and this causes the report action to disappear when browsing the cube. I understand this is because there is a syntax issue.
Please bear with me if these queries are trivial as I am fairly new to SSAS and MDX and am struggling to successfully establish a connection to the SSRS report from the cube.
Could anyone please help/advise.
Further down I guess I would need to pass these values dynamically but as a first step I am keen to establish the correctness of this all.
Thanks in advance.
When i replaced the path with report server path instead of report manager , the parameter is being reflected in the report.
Also Date was updated as UrlEscapeFragment(Cstr("1"+"/1"+"/2016")) and was picked up.
This has now been replaced with dynamic values by using Dimension.Attribute.CurrentMember.Name.