Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 3 of 3

Thread: SCAuto event maps

  1. #1
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,271

    Default SCAuto event maps

    Can someone tell me whats wrong with this.

    I have an event with an associated event map. In this map I have among other things following 2 fields:

    ext.error.num
    ext.error.text

    both fields are defined as characters in the dbdict

    On the map for ext.error.num I have following expression in post-map instructions:

    if null(ext.error.num in $axces.target) then (ext.error.num in $axces.target="0")

    This should ensure that the field will be filled with "0" if the field is NULL in the event. This WORKS.


    On the map for ext.error.text I have following expression in post-map instructions:

    if null(ext.error.text in $axces.target) then (ext.error.text in $axces.target="Ok")

    This should ensure that the field will be filled with "Ok" if the field is NULL in the event. This does NOT WORK!

    Except for the actual field names the to maps is completely identical.
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  2. #2
    Member
    Join Date
    Nov 2001
    Location
    Boston, MA - United States
    Posts
    79

    Default

    Tommy,

    There doesn't appear to be anything wrong with your statement but you could try writing like this instead:

    if ext.error.text in $axces.target=NULL then (ext.error.text in $axces.target="Ok")

    That's typically how I check for null in my format control records.

    Aaron

  3. #3
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,271

    Default

    The really painful thing about SC generally is that following statements all in theory should give the same result:


    if ext.error.text in $axces.target=NULL
    if null(ext.error.text in $axces.target)
    if same(ext.error.text in $axces.target,NULL)

    But You nerver know when which one will work :evil:
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts