- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 03:05 AM
Hello Team,
I am getting an error as "Error: java.lang.NullPointerException" in an flow designer Action
Description : Right now I am looking to do transform map through the flow designer , I have successfully load the data to the data source table (like attachment , source table and transform map is attached to the data source ) , so i want to trigger this data source through the script . below is the script which i was written. when i am trying to test i am facing an error. for your reference purpose i am pasting the code as well as screenshot of the error.
code:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 07:55 AM
Hi @Rakesh113
you already posted the answer in the above code example:
"Please note this part of the script cannot be used in scoped apps directly. To use in scoped apps, wrap it in a script include and grant access to invoke the script include from a scoped app."
So you cannot use new GlideImportSetLoader() in a scoped Flow.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 07:55 AM
Hi @Rakesh113
you already posted the answer in the above code example:
"Please note this part of the script cannot be used in scoped apps directly. To use in scoped apps, wrap it in a script include and grant access to invoke the script include from a scoped app."
So you cannot use new GlideImportSetLoader() in a scoped Flow.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 08:29 AM
I am not using an scooped app , but I am facing an null pointer error , for your reference purpose I have attached screenshot also with error log.pleas