cancel
Showing results for 
Search instead for 
Did you mean: 

Text to UUID data incompatible issue

07-06-2023 11:07 AM
WayneSG Participant
1747 views 5 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Dear all,

I followed the tutorial "Check Status of Process from SAP Build App" written by daniel.wroblewski.

Then I encountered an issue as per below:

I have followed the tutorial until STEP7:

STEP 7 Create logic to retrieve status

4. For the Get record flow function:

Resource name: Set to Workflow Information.

id: Click the binding icon and set the field to Data item in repeat > current > processId

When I try to set the id, I encounter the incompatible data type issue, please refer to screen shot for detail.

I try to use STRTOUUID(repeated.current.processId) formula, however the STRTOUUID is an unknown function.

Need some advice on this issue. Thanks.

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Dan_Wroblewski
Developer Advocate
Developer Advocate

My fault ... let's start over.

You can instead bind with a formula: repeated.current.processId

Don't mind that the formula editor throws an error.

P.S.: Previously I was able to do it with "Data item in repeat" since the ID field is a straight text field. It shows as Text in the data resource but not sure why it has changed.

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes

We recently change the tutorial to use retrieve action -- since we are retrieving information -- instead of create and to import the schema. But this overrode the schema of the ID field -- which was text previously -- and now became UUID. I will fix the tutorial. thanks.

WayneSG
Participant
0 Likes

I have tested, the result is same. As you can see as per below screen shot, in fact, I have cancelled all the 4 workflow instance.

However, it is still showing running.

Answers (1)

Answers (1)

Dan_Wroblewski
Developer Advocate
Developer Advocate

In this case you are using the wrong data resource -- you need to use Workflow (the on-device storage) and not Workflow Information (the API call to SAP Build Process Automation).

If ever you did need to make UUID to Text, know this:

  • The data type UUID is still a text field, but with a special expected format. So its text but the formula editor and binding editors do a check of the type of string. The binding editor prevents you from using this field and the formula editor warns you but does not prevent you from using it.
  • So you would use a formula to select the UUID field -- you do not have to explicit convert it.
WayneSG
Participant
0 Likes

Hi Daniel,

If I use "Workflows" instead of "Workflow Information", the Workflow status won't be updated even I have onheld a running workflow. If still use "Workflow Information" as data name, bind id to with formula "repeated.current.Id" (ignore the error prompting), the result is same. I have followed every step which is described in your tutorial. Any comment is greatly appreciated.