Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #1 
I try to set the start/end date/time in a report filter on creation.  But it's throwing "Nullable object must have a value".  I've tried ProcessContext.CurrentTime as well as DateTime.CurrentDate and they both throw the same error.  When i leave those 2 values undefined upon load, it opens up fine and is selectable.  Is there a setting somewhere i've overlooked when setting this up?(I just set up a 2 server live environment).  I've compared as much as possible with the test environment which this works fine in.
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #2 
need to see how you are setting these
__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #3 
On form load, AssignActivity, local.dtmStart = ProcessContext.CurrentTime

the same way as in the test environment.  I might have some more db issues so i'm going to work through my other problem with the watch/todo list first and then get back to this issue
0
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #4 
So it can get the date, but when i have it try to get the current time, it gives me that nullable object error
0
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #5 
Solved, my web.config file was missing
<add key="EnableUtcDateTimeSupport" value="1"></add>
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #6 
I don't understand how a change to the web client config could fix this, as the form load event is an engine thing. Could you explain what the problem was?
__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #7 
Here is the exact response from opentext(7 hours after i figured it out)

Check the ~\BPM\Web\web.config for the following line:
add key="EnableUtcDateTimeSupport" value="1"></add>
Ensure that this is set to 1 and not 0.

Because the dates were working, and the times were not, i figured it had something to do with how metastorm receives it's time(s).
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #8 
Could you explain the problem you were seeing. What exactly were you doing to make the error occur?
__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #9 
On any form, if i set a date field to populate with a time, whether it be right now or a month from now, on form load it would display "Nullable object must have a value".

To narrow down the issue, i removed the date/time assignments on form load and the form would load fine.  So i started to add them back in.  While it could assign the date just fine, if i had it assign the time upon form load, i would receive that error.

If you would like to recreate the problem and see for yourself, comment out the line  "<add key="EnableUtcDateTimeSupport" value="1"></add>" and try to load a form with a pre-assigned time.
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #10 
Just a time, or a date & time?
__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #11 
Both, the problem will occur anytime there is a TIME on the form that is pre-assigned.  So the time can be by itself or it can be a date/time combination.
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #12 
OK I am obviously doing something wrong, because it works fine for me, and always has. See the attached.

Can you tell me exactly how you set the time, then?

 
Attached Files
zip Test_Set_Time_field_on_load.zip (19.54 KB, 9 views)


__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.

0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #13 
OK, I tell a lie, I have that setting in my web.config. I do not recall ever setting it however.

mentioned here too:
http://metastorm.processmapping.com.au/post/TimePicker-error-when-UTCSupport-is-set-to-0.-5865348

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #14 
The guy that setup our test environment doesn't remember ever setting that either.  Yet for some reason when i did this 2 server setup, the line was non-existent in either config.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!