How to get the returned error messages in the Try/Catch block in DS 3.0?

A customer sent me the following questions when he tried to implement custom error handling in DS 3.0. I could only find the function "smtp_to" can return the last few lines of trace or error log file but this is not what he wants. Does anyone know the answers? Thanks!
I am trying to implement the Try/Catch for error handling, but I have
hard time to get the return the msg from DI, so I can write it to out
custom log table.
Can you tell me or point me to sample code that can do this, also, can
you tell me which tables capture these info if I want to query it from
DI system tables

Hi Larry,
In Data Services XI 3.1 (GAd yesterday) we made several enhancements for our Try/Catch blocks. One of them is the additional of functions to get details on the error that was catched :
- error_message() Returns the error message of the caught exception
- error_number() Returns the error number of the caught exception
- error_timestamp() Returns the timestamp of the caught exception.
- error_context() Returns the context of the caught exception. For example, "|Session Datapreview_job|Dataflow debug_DataFlow|Transform Debug"
In previous versions, the only thing you could do was in the mail_to function specify the number of lines you want to include from the error_log, which would send the error_log details in the body of the mail.
Thanks,
Ben.

Similar Messages

  • How to get rid of error message for the material?

    Hi everybody,there is a material which is showing an error message whenevr try to create a sales order, i've checked the material master...there is no check in X-plant Mtrl or X-dist chan or any flag for deletion...but still the red error message comes up while creating a sales order...how to get rid of this error?

    this means material is blocked for procurment
    three kinds of block can be there
    01 Blocked for procment/whse
    02 Blocked for task list/BOM
    03 Blocked for Purchasing
    GOTO MM42 give material n plant data
    Select BESIC VIEW
    there is a field called as material block remove the blocking reason
    Hope this will help
    Edited by: WISH on Mar 24, 2008 6:33 AM

  • Has anyone been able to upload an ibooks file with audio only files (m4a) in it? I keep getting the following error message during the upload in iTunes Producer: ERROR ITMS-9000: "Files of type audio/x-m4a are not allowed outside of widgets.

    Has anyone been able to upload an ibooks file with audio only files (m4a) in it? I keep getting the following error message during the upload in iTunes Producer: ERROR ITMS-9000: "Files of type audio/x-m4a are not allowed outside of widgets. then it names the file as an m4p file. Everything works beautifully on the iPad through Preview, and validates through iTunes Producer up until the attempted upload. If you've been able to accomplish this, please let me know how you prepared your audio files. Many thanks.

    Hello Fellow iBook Authors!
    Today I received the same error that you all have been discussing.  I tried selecting the DRM
    and this did not work for me, though I'm glad it did for some.  Here's what I did as a work-around. . .
    Since iBooks Author did not have a problem with Videos, I simply used one of my video programs, ScreenFlow to turn the audio into a video file m4v.  I added an image and extended the length or timing of the image to span the length of the audio file.  Then exported as an .mov.  I then opened QuickTime and opened the file and exported the file to iTunes. 
    You can use iMovie, Camtasia or any other progam that will allow you to export the audio as a movie file.  Does this make sense?  I hope this helps, at least in the short-term.
    Michael Williams

  • I keep getting the following error message when I try to update my itunes, "There is a problem with this windows installer package. Aprogram run as part of the set up did not finish as expected.  Contact your support personnel or package vendor."

    I keep getting the following error message when I try to update my itunes, "There is a problem with this windows installer package. Aprogram run as part of the set up did not finish as expected.  Contact your support personnel or package vendor."

    Yes, I had found a similar solution also.  I'm running XP Pro, SP3.  I went Control Panels/ Add-Remove programmes/apple software update/ change/ repair.  Then run the 10.5 exe.
    While the programme updated from version 8 of iTunes, my new iTunes is now a mess.  Not all of my music was in the same folder previously but it all showed up on iTunes.  Now many albums have been left out, some have only a few tracks and some have two copies of some tracks as well as having other tracks missing.  I haven't begun to work on that.

  • I am getting the following error message when I try to import photos into iPhoto from my camera: "/private/var/folders/GB/GBl4wh8-ELqUVMI5dO-ryU   TI/-Tmp-/iPhoto/DSCF2033.JPG".  Have already tried removing and reinstalling iPhoto to no avail.

    I am getting the following error message when I try to import photos into iPhoto from my camera: "/private/var/folders/GB/GBl4wh8-ELqUVMI5dO-ryU   TI/-Tmp-/iPhoto/DSCF2033.JPG".  Have already tried removing and reinstalling iPhoto to no avail.

    Does this happen if you try to Import to Library within iPhoto, or is it when you connect your camera (and which is set to automatically use iPhoto) that this error message occurs?
    If you open Image Capture > Preferences is iPhoto selected as the choice when a camera is connected?

  • All of a sudden my iTunes stopped working, and I get the following error messages:   1. the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem   and   2. iTunes was not installed correct

    All of a sudden my iTunes stopped working, and I get the following error messages:
    1. the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem
    and
    2. iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 126).
    Now I've checked the forums and followed the advice of uninstalling all Apple applications, rebooting, and reinstalling iTunes.
    This is not working. I've tried installing as Administrator but doesn't make any difference at all.
    There must be a way to fix this? I'm not a tech geek but I want to avoid having to take my laptop back to factory settings to sort this out.
    Thanks

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99192)

  • HT201210 I get the follow error message when i try to update my Iphone on I Tunes "Could not update file because firmware file is not compatible

    I get the follow error message when i try to update my Iphone on I Tunes " fireware is not capatible 2

    got an anti virus that thinks it should scan email. Turn that function off.
    Have a firewall, check that Thunderbird has full internet access, not some Auto rubbish that somehow fails.

  • How do I resolve this error message? The iPhoto library is on a locked volume.  Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library.

    How do I resolve this error message? The iPhoto library is on a locked volume.  Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library.

    Hi j,
    I don't know if this will work, but I'd try logging in to an admin account, going to your main library (not user library), opening it, opening Application Support, selecting iPhoto, hold down the command key and press i, click on the lock in the lower left, entering the password and making sure you have Read & Write privileges for System and Admin.

  • I'm getting an error starting Photoshop CS4.  Error number 148.3  Licensing for this product has stopped working.  I rebooted several times to no avail.  Still get the same error message everytime I try to start Photoshop.  I'm using Windows 7 -- 64 bit

    Error number 148.3  Licensing for this product has stopped working.  I rebooted several times to no avail.  Still get the same error message everytime I try to start Photoshop.  I'm using Windows 7 -- 64 bit

    If you can not use CS4 menu Help>Activate|Deactivate to get the install working again you may need to re-install CS4.

  • How I can fix this error message in the Windows Server - kCGErrorFailure: No workspace dictionary?

    How I can fix this error message in the Windows Server - "kCGErrorFailure: No workspace dictionary"? This occurs after every startup or restart.

    You probably don't need the hard drive and optical drive specs, but here they are?
    ======================
    Intel ICH10 AHCI:
      Vendor:          Intel
      Product:          ICH10 AHCI
      Link Speed:          3 Gigabit
      Negotiated Link Speed:          1.5 Gigabit
      Description:          AHCI Version 1.20 Supported
    HL-DT-ST DVD-RW GH41N:
      Model:          HL-DT-ST DVD-RW GH41N                  
      Revision:          PQ06   
      Serial Number:          K3D9BH92251        
      Native Command Queuing:          No
      Detachable Drive:          No
      Power Off:          No
      Async Notification:          Yes
      Bay Name:          Upper
    HL-DT-ST DVD-RW GH41N:
      Model:          HL-DT-ST DVD-RW GH41N                  
      Revision:          PQ06   
      Serial Number:          K3D9BH92251        
      Native Command Queuing:          No
      Detachable Drive:          No
      Power Off:          No
      Async Notification:          Yes
      Bay Name:          Upper
    Intel ICH10 AHCI:
      Vendor:          Intel
      Product:          ICH10 AHCI
      Link Speed:          3 Gigabit
      Description:          AHCI Version 1.20 Supported
    Intel ICH10 AHCI:
      Vendor:          Intel
      Product:          ICH10 AHCI
      Link Speed:          3 Gigabit
      Negotiated Link Speed:          3 Gigabit
      Description:          AHCI Version 1.20 Supported
    Hitachi HDP725050GLA360:
      Capacity:          500.11 GB (500,107,862,016 bytes)
      Model:          Hitachi HDP725050GLA360                
      Revision:          GM4OA5CA
      Serial Number:                GEA534RJ06E63A
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk1
      Rotational Rate:          7200
      Medium Type:          Rotational
      Bay Name:          Bay 1
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
    disk1s1:
      Capacity:          209.7 MB (209,715,200 bytes)
      BSD Name:          disk1s1
      Content:          EFI
    OSXLION:
      Capacity:          499.25 GB (499,248,103,424 bytes)
      Available:          192.76 GB (192,758,513,664 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk1s2
      Mount Point:          /
      Content:          Apple_HFS
    Recovery HD:
      Capacity:          650 MB (650,002,432 bytes)
      BSD Name:          disk1s3
      Content:          Apple_Boot
    Hitachi HDP725050GLA360:
      Capacity:          500.11 GB (500,107,862,016 bytes)
      Model:          Hitachi HDP725050GLA360                
      Revision:          GM4OA5CA
      Serial Number:                GEA534RJ06E63A
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk1
      Rotational Rate:          7200
      Medium Type:          Rotational
      Bay Name:          Bay 1
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
    disk1s1:
      Capacity:          209.7 MB (209,715,200 bytes)
      BSD Name:          disk1s1
      Content:          EFI
    OSXLION:
      Capacity:          499.25 GB (499,248,103,424 bytes)
      Available:          192.76 GB (192,758,513,664 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk1s2
      Mount Point:          /
      Content:          Apple_HFS
    Recovery HD:
      Capacity:          650 MB (650,002,432 bytes)
      BSD Name:          disk1s3
      Content:          Apple_Boot
    Intel ICH10 AHCI:
      Vendor:          Intel
      Product:          ICH10 AHCI
      Link Speed:          3 Gigabit
      Negotiated Link Speed:          3 Gigabit
      Description:          AHCI Version 1.20 Supported
    WDC WD2002FYPS-02W3B0:
      Capacity:          2 TB (2,000,398,934,016 bytes)
      Model:          WDC WD2002FYPS-02W3B0                  
      Revision:          04.01G01
      Serial Number:               WD-WCAVY7048785
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk3
      Rotational Rate:          5400
      Medium Type:          Rotational
      Bay Name:          Bay 2
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
    disk3s1:
      Capacity:          209.7 MB (209,715,200 bytes)
      BSD Name:          disk3s1
      Content:          EFI
    BU2TB-Time:
      Capacity:          2 TB (2,000,054,960,128 bytes)
      Available:          1.1 TB (1,096,926,654,464 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk3s2
      Mount Point:          /Volumes/BU2TB-Time
      Content:          Apple_HFS
    WDC WD2002FYPS-02W3B0:
      Capacity:          2 TB (2,000,398,934,016 bytes)
      Model:          WDC WD2002FYPS-02W3B0                  
      Revision:          04.01G01
      Serial Number:               WD-WCAVY7048785
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk3
      Rotational Rate:          5400
      Medium Type:          Rotational
      Bay Name:          Bay 2
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
    disk3s1:
      Capacity:          209.7 MB (209,715,200 bytes)
      BSD Name:          disk3s1
      Content:          EFI
    BU2TB-Time:
      Capacity:          2 TB (2,000,054,960,128 bytes)
      Available:          1.1 TB (1,096,926,654,464 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk3s2
      Mount Point:          /Volumes/BU2TB-Time
      Content:          Apple_HFS
    Intel ICH10 AHCI:
      Vendor:          Intel
      Product:          ICH10 AHCI
      Link Speed:          3 Gigabit
      Negotiated Link Speed:          3 Gigabit
      Description:          AHCI Version 1.20 Supported
    WDC WD10EAVS-00D7B1:
      Capacity:          1 TB (1,000,204,886,016 bytes)
      Model:          WDC WD10EAVS-00D7B1                    
      Revision:          01.01A01
      Serial Number:               WD-WCAU43604330
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk0
      Medium Type:          Rotational
      Bay Name:          Bay 3
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
    disk0s1:
      Capacity:          209.7 MB (209,715,200 bytes)
      BSD Name:          disk0s1
      Content:          EFI
    Data:
      Capacity:          999.86 GB (999,860,912,128 bytes)
      Available:          715.55 GB (715,549,786,112 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk0s2
      Mount Point:          /Volumes/Data
      Content:          Apple_HFS
    WDC WD10EAVS-00D7B1:
      Capacity:          1 TB (1,000,204,886,016 bytes)
      Model:          WDC WD10EAVS-00D7B1                    
      Revision:          01.01A01
      Serial Number:               WD-WCAU43604330
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk0
      Medium Type:          Rotational
      Bay Name:          Bay 3
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
    disk0s1:
      Capacity:          209.7 MB (209,715,200 bytes)
      BSD Name:          disk0s1
      Content:          EFI
    Data:
      Capacity:          999.86 GB (999,860,912,128 bytes)
      Available:          715.55 GB (715,549,786,112 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk0s2
      Mount Point:          /Volumes/Data
      Content:          Apple_HFS
    Intel ICH10 AHCI:
      Vendor:          Intel
      Product:          ICH10 AHCI
      Link Speed:          3 Gigabit
      Negotiated Link Speed:          3 Gigabit
      Description:          AHCI Version 1.20 Supported
    WDC WD1003FBYX-01Y7B0:
      Capacity:          1 TB (1,000,204,886,016 bytes)
      Model:          WDC WD1003FBYX-01Y7B0                  
      Revision:          01.01V01
      Serial Number:               WD-WCAW31850957
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk2
      Rotational Rate:          7200
      Medium Type:          Rotational
      Bay Name:          Bay 4
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
    disk2s1:
      Capacity:          209.7 MB (209,715,200 bytes)
      BSD Name:          disk2s1
      Content:          EFI
    BUOSXLION:
      Capacity:          999.86 GB (999,860,912,128 bytes)
      Available:          697.88 GB (697,881,690,112 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk2s2
      Mount Point:          /Volumes/BUOSXLION
      Content:          Apple_HFS
    WDC WD1003FBYX-01Y7B0:
      Capacity:          1 TB (1,000,204,886,016 bytes)
      Model:          WDC WD1003FBYX-01Y7B0                  
      Revision:          01.01V01
      Serial Number:               WD-WCAW31850957
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk2
      Rotational Rate:          7200
      Medium Type:          Rotational
      Bay Name:          Bay 4
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
    disk2s1:
      Capacity:          209.7 MB (209,715,200 bytes)
      BSD Name:          disk2s1
      Content:          EFI
    BUOSXLION:
      Capacity:          999.86 GB (999,860,912,128 bytes)
      Available:          697.88 GB (697,881,690,112 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk2s2
      Mount Point:          /Volumes/BUOSXLION
      Content:          Apple_HFS

  • I updated to Mavericks and now I can'burn any DVD's any more. I get the following error message and the disk is ejected: The disc can't be burned because an unexpected error occurred (error code 0x80020000)

    I updated to Mavericks and now I can'burn any DVD's any more. I get the following error message and the disk is ejected: The disc can’t be burned because an unexpected error occurred (error code 0x80020000)
    I did burn the same way in MAC OS X 10.6.8. with no troubles!
    Can anyone please help me out?
    I use for years DVD-R of TDK 4.7GB 16X.

    Hey topo27,
    I would try out the following and see if it helps:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    Welcome to Apple Support Communities!
    Cheers,
    Delgadoh

  • I get the following error message when I try to receive e-mail in this hotmail account: "Configuration could not be verified – is the user name or password wron

    I have tried to add a hotmail account to Thunderbird because my Internet provider will stop e-mail support in the near future. I was able to add a hotmail account to Thunderbird, but I get the following error message when I try to receive e-mail in this hotmail account: "Configuration could not be verified – is the user name or password wrong?" (The hotmail website receives the e-mail.) User name and password is certainly correct. I have a 8.1 OS. Thank you.

    got an anti virus that thinks it should scan email. Turn that function off.
    Have a firewall, check that Thunderbird has full internet access, not some Auto rubbish that somehow fails.

  • A get an internal error message when i try to install adobe reader

    I get an internal error message when I try to install Adobe reader.  I also get error message 1606 could not access net location %APPDATA%\.  How can I fix this?

    See this article http://support.microsoft.com/kb/886549/ regarding the corrupted %APPDATA% environment variable.
    If you require further help, please specify your Windows version.

  • I get a download error message when I try to open my apps tab on my home network

    I get a download error message when I try to open my apps tab on my home network. But I am able to sign in to my account on the web. Do you know how to fix this?

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • I upgraded my iphone 5 to iOS 8 and now i get an itunes error message when I try to sync "this iphone cannot be synced. Unknown error.

    I upgraded my iphone 5 to iOS 8 and now i get an itunes error message when I try to sync "this iphone cannot be synced. Unknown error. (-50). my icloud drive was stuck in an upgrade cycle, but i've stopped that and still get the error message.

    I restarted itunes and tried again (based on a similar question/solution from 2012).
    I don't get the error message anymore, but it's really sort of odd that after step one of sync, it looks as if sync stopped, and then all of a sudden you see step 4 of sync.
    Also before the upgrade I had 7+ gigs of space free and after the upgrade I have 10 gigs free. seems like something is amiss, but it's not like I have anyway of determining that.

Maybe you are looking for