jcoulter105 Posted March 14, 2019 Share Posted March 14, 2019 Scribe is working out beautifully for what we need to do. Having one minor annoyance and hoping there is an option I am missing. When I use the ScribeDocReadValue function on an empty Excel cell, it returns "ERROR." I'm using this to pull data from a form we had been using in Excel into my FM solution which is replacing that form. There are many dozen cells and I'd rather not use IF to test for the error on every single one of them. Is there a way to have Scribe just return "" if the cell is empty? I mean, it's not technically an error. Just an empty cell. Right now I'm running a Find/Replace in my import script once I've pulled in all the data. Would rather it just pulled in "" instead. Thanks !! Link to comment Share on other sites More sharing options...
ryan360Works Posted March 14, 2019 Share Posted March 14, 2019 Hello, Can you tell me what the actual error is? You can do so by calling ScribeLastError after the function returns ERROR like so: Quote If [ScribeDocReadValue("Some Cell") = "ERROR"] Show Custom Dialog ["There was an Error"; ScribeLastError] End If Link to comment Share on other sites More sharing options...
jcoulter105 Posted March 14, 2019 Author Share Posted March 14, 2019 Yep ... it says java.lang.NullPointerException Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 1869 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now