Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


thomas
2017-04-25T07:20:04Z
Hi

Using this date variable works in 8.2.5, but fails in 8.2.6

Capture.PNG

It sends an email with the subject: TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string

Edit: I just noticed that this also affected an excel task with the same translate variable error.
Sponsor
Forum information
Support
2017-04-25T10:26:48Z
It seems like you are mixing paramter delimiters. You either need to use comma or pipe.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
thomas
2017-04-25T10:53:07Z
That's fine, but it works in 8.2.5, so there must have been a change on your side. I guess I'll have to reinstall 8.2.6 an test again.
thomas
2017-04-25T11:45:22Z
I tested some more now, and it's not the date that fails I see now, it's the Result.NoRows that fails (not visible in the previous image as it was further to the right).
We fetch some data from the db and report the number of rows from that task.



Support
2017-04-25T11:56:10Z
Originally Posted by: thomas 

I tested some more now, and it's not the date that fails I see now, it's the Result.NoRows that fails (not visible in the previous image as it was further to the right).
We fetch some data from the db and report the number of rows from that task.





Please paste the exact Variable that does not work here. Also the Task type.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
thomas
2017-04-25T12:11:51Z
It this variable that fails. I use it in the subject line of the email task. It also fails in an excel task. I don't think it's related to any task

Capture.PNG
Support
2017-04-25T13:58:01Z
So, just to be super clear:

1. the previous Task is a SQL Task?
2. you are using this exact Variable in the Notification or next Task: {TASK(PrevTask,Result.NoRows)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
thomas
2017-04-25T14:30:30Z
Hi

This is a strange one. I didn't give you enough info I see now, sorry about that.

Task 1 is an sql query
Task 2 writes to file
Task 3 gets number of rows from 1, using then exact id like this: {TASK(9c07093a-a874-4e03-8e44-aa2f85511a9c,Result.NoRows)}

Here is the strange thing. When I create a new job on version 8.2.6, using the exact id works. I believe therefor that to replicate it you have to create the job in 8.2.5, and then upgrade to 8.2.6. That is when it fails. So it seems that there is something with the upgrade that does it. I will check more if I have time. There are no errors in the log, even with extended debugging on.

Support
2017-04-26T08:25:31Z
Originally Posted by: thomas 

Hi

This is a strange one. I didn't give you enough info I see now, sorry about that.

Task 1 is an sql query
Task 2 writes to file
Task 3 gets number of rows from 1, using then exact id like this: {TASK(9c07093a-a874-4e03-8e44-aa2f85511a9c,Result.NoRows)}

Here is the strange thing. When I create a new job on version 8.2.6, using the exact id works. I believe therefor that to replicate it you have to create the job in 8.2.5, and then upgrade to 8.2.6. That is when it fails. So it seems that there is something with the upgrade that does it. I will check more if I have time. There are no errors in the log, even with extended debugging on.



It sounds like the Id or Task type has changed. The reason for the error is most likely that the Id is pointing to a Task that does not have this Result value (because it is really not a SQL Task).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
thomas
2017-04-26T08:30:14Z
How do explain that it fails when I upgrade to 8.2.6, and when I roll back to 8.2.5 it works again, without any other changes?

Support
2017-04-26T14:13:13Z
Originally Posted by: thomas 

How do explain that it fails when I upgrade to 8.2.6, and when I roll back to 8.2.5 it works again, without any other changes?



I don't know. But the question is, if you do reselect the Variable in VC after upgrading - that it will have the same Id?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
thomas
2017-04-27T07:21:08Z
It's the same. Unfortunately I don't have time to test more on this due to work. We will just have to stick to 8.2.5 for a few months.
Users browsing this topic
Scroll to Top