cancel
Showing results for 
Search instead for 
Did you mean: 

Error during debug run in iRPA Desktop studio

Roland_zB
Explorer
0 Kudos

Dear SAP Community,

I implemented 2 simple workflows in the iRPA Desktop Studio, based on the "Bot building with Intelligent RPA" video in the SAP Learning Hub-

When building the code, several warning messages of type 'Property MyData never defined..' show up.

And when trying to run the workflows through the Debugger / by starting in Desktop Agent, I get the error message 'ctx.dataManagers.rootData' is null or not an object.

Can anybody say what this error means / how it can be fixed? I myself have no JS knowledge.

Thanks in advance for any help, I appreciate any related insight!

former_member651398
Participant
0 Kudos

Hello Roland,

Can you please share some screen shots of your issues for better understanding?

Roland_zB
Explorer
0 Kudos

Hi,

sorry for the late reply. Here's a screenshot with the error messages, that come up when I try to build the code.

Not sure why the system brings that up, as I believe to have defined the "MyData" variables in the Context section (see screenshot below as comment to Baptiste)?

Roland_zB
Explorer
0 Kudos

Here is the screenshot with the error messages

Accepted Solutions (0)

Answers (1)

Answers (1)

Hello,

In the workflow section, on the right, you have a panel with different tabs.

One of these tab named "Context". This tab let you create some variables where content can be store and reuse during the execution of your workflow.

Based on what you wrote, I guess that you have to create an item called MyData in this panel.

Best regards,

Baptiste Saint-André

Roland_zB
Explorer
0 Kudos

Hi Baptiste,

thanks for your suggestion. It seems like I have already added the MyData objects in the "Context" tab, see attached screenshot.

Not sure if it should be defined / added differently ?

0 Kudos

Hello,

Is your script well connected to the desired workflow ?

Did you change the GLOBAL script or another script regarding the rootData or sc.data object ?

From what I see, it's just warnings. Does the execution fail during the execution ?
Regards,

Baptiste Saint-André

Roland_zB
Explorer
0 Kudos

Hi again,

as far as I can see, the "createvendorinsapfi" script is well connected to the workflow.

And I don't recall changing any script manually. However, when building the script, I confirmed a couple of messages from the "KDiff3 merge tool" that was called up automatically. Not sure if anything crucial was changed through KDiff?

Unfortunately, the script doesn't seem to work now, when testing / running in debugging mode...

I was also wondering if the script is built again from scratch each time you click on the "Build" button?

Or - if not, by default - can this be enforced (e.g. that the old scripts are deleted and new ones are built, based on the application definition and the workflow?

Cheers, Roland

0 Kudos

Hi Roland,

When you build the script, the script is not built from scratch. It takes care of your previous custom code / merge.

To enforce the build from scratch, you can delete your script then hit the build button again. Like this, the script will be build based on your declarations and workflow.

Be aware that doing this erase your custom code and other parts wrote on the script. But it can be helpful in your situation.

Best regards,

Baptiste Saint-André

Roland_zB
Explorer
0 Kudos

Thanks for the hint, Baptiste!

Will I then just need to delete the "actual" script itself, or also the "Declarations" (possibly also "Framework") scripts completely?

Best regards,

Roland

0 Kudos

No problem !

Just your createvendor script, not the declarations one.

Best regards,

Baptiste Saint-André