I created a PowerAutomate flow that reads data from an excel file and writes to a SharePoint List. When it tries to write a date field that is empty, I get the error message below
OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/field_9' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'.
Any thoughts on how to resolve this issue?
And also any thoughts on how to obtain the column ID would be highly appreciated
Add a condition to check if the date column is empty, if true, keep the date column blank too in SharePoint list, else, add the date as shown below:
addDays('1899-12-30',int(items('Apply_to_each')?['Date']),'yyyy-MM-dd')
Related
Here I need to try to find the difference between the created date and the initial approval. I've tried the following formula
=IFERROR(IF(IF(AND(ISBLANK(B3),ISBLANK(C3)),"Enter dates"), IF(ISBLANK(B3),"Enter Created date"),IF(ISBLANK(C3),"Enter Initial Approval date",IF(C3<B3,"Enter correct date",C3-B3))),"Dates are Missing")
When the created date cell is blank, the formula is not prompting the error message.
Can anyone please help me?
This works for me:
=IFERROR(IF(AND(ISBLANK(B3),ISBLANK(C3)),"Enter dates",IF(ISBLANK(B3),"Enter Created date",IF(ISBLANK(C3),"Enter Initial Approval date",IF(C3<B3,"Enter correct date",C3-B3)))),"Dates are missing")
The following one also:
checks if one or both reference are returning error and if so it checks if it's a reference error of another kind of error and report the missing reference/s or the erroneous reference/s;
cheks if one or both reference have numbers inside of them, otherwise it returns the invalid reference/s.
=IF(AND(ISERROR(B3),ISERROR(C3)),IF(AND(ERROR.TYPE(B3)=4,ERROR.TYPE(B3)=4),"Dates are missing","Erroneous dates"),IF(AND(ISBLANK(B3),ISBLANK(C3)),"Enter dates",IF(ISBLANK(B3),IF(ISERROR(C3),IF(ERROR.TYPE(C3)=4,"Initial approval date is missing","Erroneous initial approval date"),"Enter Created date"),IF(ISBLANK(C3),IF(ISERROR(B3),IF(ERROR.TYPE(B3)=4,"Created date is missing","Erroneous created date"),"Enter Initial Approval date"),IF(AND(ISNUMBER(B3),ISNUMBER(C3)),IF(C3<B3,"Enter correct date",C3-B3),IF(ISNUMBER(B3),"Invalid initial approval date",IF(ISNUMBER(C3),"Invalid created date","Invalid dates")))))))
I have an information link that I want to restrict in spotfire when I add it as a data table so that certain data is excluded. I want to restrict column 'DAY' to the past 91 days.
These are the steps I have tried that haven't worked:
Added data table and clicked 'load on demand' (in the 'Add Data Tables' window) and then 'settings'
On the 'DAY' column, clicked 'Define Input'
Chose 'Range(fixed/properties/expression)' as the 'Input' for the selected parameter
Then as the 'expression' for the 'Min', used: DateAdd('dd',-91,DateTimeNow())
It returns an error when I try to add a transformation to the data or just returns no data when I add the data table. If I just restrict the data with a fixed value it works as expected but clearly this would mean that I would need to change the restriction everyday. I have also been able to restrict the data to a static date directly on the information link under the 'Filters' heading. What I really need is a dynamic restriction that is placed on in some way, in Spotfire, rather than directly on the data source (Oracle).
Would be grateful for any help! Thanks!
It couldn't recognize DateTimeNow(), which is a DateTime as a Date. Spotfire gets kind of picky about that sort of thing.
Replace the Expression used for Min with
DateAdd("dd",-91,Date(DateTimeNow()))
and it should work.
I have a form where I need to include a calculated field. I made a very simple test using a calculated field where the formula is "=ID". I just want to confirm that the value I'm getting in the view is the same as the ID of the record in the list.
I press NEW and create a new record. Then when I see the new record in the view, the first column is the ID (let's say 11), then some proper fields form the form and finally the calculated field that instead of showing me the value 11, it shows 0.
Then I follow the following steps:
I go to Settings, List Settings
Click on the calculated field to edit it (only edit it with no modifications) and press on OK (no modifications to the calculated field at all)
Go back to the list of records and now the calculated value shows me the value 11
I google it but no solution.. there is someone say that this issue is from the column ID, it mean 'when you initially save the item is that there is no value for "ID" yet' !
and this isn't my state, the column id is incremented normally when add new item.
Anyone can help me to identify with the calculated field does not shows 11 automatically after the record is saved?
or by follow another solution like using a workflow 2013..
Thanks a lot
You can not use [ID] in a Calculated Column formula.
I won't bother with the long technical explanation...
If it was possible, Microsoft would have added it to the list of Fields you can select when writing a Formula.
Workaround is to make a simple SharePoint Designer Workflow which kicks off on Item creation and saves the ID value to another Column.
You can then use that Column in your Calculated Formulas
If you're doing anything front-end.. jQuery.. CSR/JSlink.. the ID value is available in the attribute id of the Item TableRow (TR) as x,id,y
so you can get the id with
var ID={element}.getAttribute('id')[1]
Update #1 - example code used:
="<a href='/sites/ru1/Lists/ao26c/DispForm.aspx?ID='
target='_blank'><img src= '_layouts/images/blank.gif'
onload= ""var row=this;
while(row.tagName!='TR'){row=row.parentNode};
this.parentNode.href+=row.getAttribute('id').split(',')[1];
"">Открыть</a>"
I'm new to Orchard CMS and trying to create a query that will filter a list of upcoming events date. What I want to do is filter a list of upcoming events. I have set up a list and plan to use the creation date (setting the date to the event date) as filter. Where I have ran into an issue is getting the filter value to work. When I set the filter value to {DateTimeField.Date} for get the current date or any of the other date options, the filter does not work. It show all events. When I manually type in the value field "2014-08-20", it works. Any ideas of why I can not set the date to the current date?
I have also tried creating just a date field within the content definition and received the same issue as above. I do plan to create a Event End Date that will not show, but will be used to filter. I assume the value will be very similar though to what would be needed for the creation date though.
I am using Orchard CMS 1.8.0
Any help will be greatly appreciated.
The current date can be obtained in Token form like this: {Date}. That token itself can be modified as a date token. In particular, it can be formatted. In your case, because the filter will construct a HQL filtering clause from your expression, {Date.Format:yyyy-MM-dd} will put the current date into the right format.
I have a report that is up and running but I need to restrict the data on a parameter that takes multiple string-valued staff codes.
I created a parameter called Practioner which is a text type, ticked on Allow Multiple values and also on Visible.
In the available values, I made this code come from the field called mbillaty from the dataset3 under the Get values from a query option. I've checked data3 is fine in SQL server.
3.Now, I've gone to my dataset1 where all the reporting data sits then put the parameter, with the name ? and =Join(Parameters!Practitioner.Value,", ") for the parameter value. Then in the query, in the where clause, I've put: ......mbility in (?)
What should this SSRS be interpreting as is : .......mbility in ('AAB','KKR','RDR'), if the user picked these three staffs.
When I run the report, it definitley works when I check one of the practioners, but as soon as I more than one, the report wouldn't run. It does not return any error, but just the header shows, which I think means that no data is found.
Experts, do you see where I've gone wrong with this?
Thanks
If you're able to create UDFs, this link might be helpful. How do I split a string so I can access item x?
The parameter would be parsed in the SQL/function, and SSRS would simple pass the concatenated string.