web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Failed to run the VBSc...
Power Automate
Unanswered

Failed to run the VBScript via PowerAutomate Desktop in SAP

(0) ShareShare
ReportReport
Posted on by 20

Hi all,

 

I am trying to automatically create orders in SAP via PowerAutomate. The whole workflow is simply as below: read basic data of orders in Excel >>> open SAP and run the VBScript to automatically create orders based on Excel data >>> copy the order number and write it back into the Excel.

 

However, I had several issues during testing:

1. only numbers of Excel data can be input in SAP, if the data is a combination of character and number (e.g., D111), then it fails to be input in SAP;

2. when the Excel data contains a hypen (i.e., -), then it will be recognized as minus symbol and calculation is automatically made. For example, "2-21" is the Excel data read by PowerAutomate but the actual input in SAP is "-19";

3. when the first digit of the number is 0 (e.g., 0001), the Excel data is also failed to be input in SAP.

 

In order to solve these issues, I tried to set the Excel data format as Text, but it didn't work in SAP system even though all the data stored in PowerAutomate are correct.

 

I don't know how to resolve these issues, can anybody kindly give some suggestions/share some ideas? Thanks a lot!!!

I have the same question (0)
  • Wendy-Zheng Profile Picture
    20 on at

    I use UI element function to temporarily solve this issue, and if anyone has better solutions, it would be greatly appreciated!

  • Wendy-Zheng Profile Picture
    20 on at

    Here is an update: i made code optimization by using "%RawData[XX]%" instrad of %RawData[XX]% so the text in excel file can be also input in SAP system successfully! Hoping this would be useful if anyone met the same situation, thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard