Deployment Issues with Custom TS variables set for client

Good Day folks!
I have come across an interesting issue that I have not been able to find a quick fix as such I am looking for some ideas where to trouble shoot my issue moving forwards.
So the Issue:
I have a TS that deploys a Windows 8.1 SOE image, this is done first by using a PXE boot PE image for an “unknown” systems to load a Custom HTA. This HTA allows me manually add the system to SCCM and add it to a required deployments collection that has the
8.1 SOE deployed to it.
The HTA also sets a few custom variables for the system resource things like system location, Machine Domain etc. 
Once the HTA has run the system then has a delay to allow for the resource to show up tin the 8.1 deployment collection and then closes.
Now all this appears to work fine, the system is added to the collection, reboots and the deployment runs from start to finish without error.
 I can also check the system resource and the variables are present.
The problem I have found is that the custom variables for this resource are not being used by the TS after reboot.. upon further investigation I found that these variables are not even being retrieved ( ran a VB script to save all the variables from the
TS to a txt file to check this )  Because of this the TS is bypassing some needed TS Tasks.
A few interesting things to note:
System appears to be added again when AD discovery is run…. So it causes a Duplicate.
Client Dose connect to SCCM server after deployment but is not receiving deployments ( is getting some policy )
Worked with SCCM 2012 but not 2012 R2
So it appears that when the system reboots from the HTA PE step it has identified itself as an unknown system again…. Even though it has been manually added…
 I am interested to know if first of all if others would agree with this and second how SCCM while running a TS matches itself up to a system to retrieve the custom set variables before client install etc... Or a good place to start looking
to dig up more information!  Or anything else!
Thanks
Stuart.

Have you taken a look at this hotfix?
http://support.microsoft.com/kb/2907591
We had to apply it in order for our variables to be seen.
joeblow

Similar Messages

  • Issues with Custom Settings

    Is anyone else having issues with custom settings on 10.8.2?
    I am trying to configure basic office 2011 settings based on the keys located at http://afp548.com/mediawiki/index.php/Office_2011_Settings using a device group.
    However, when I log into an authenticated user's machine and load pref setter I can see that the customizations are not found on the newly managed machine.  I know the push updates are working, but for custom settings I seem to be getting nothing.
    My questions:
    - Am I just flat our doing it wrong? (meaing, should the plist files be copied over)
    - Are there common issues to look out for?
    - Can anyone share basic custom settings they have that work?
    Thanks!

    Thats a bad idea. Office dos not react well to having it's prefences copied from one machine.
    Check out: http://www.officeformachelp.com/office/administration/mcx/
    It's a good guide for MS Office prefs.

  • Issue with Removing the Patch Set Software 9.2.0.8

    Hi experts,
    I have issue with removing the patch set software 9.2.0.8
    I'm working on solaris box recently ugraded to 9.2.0.8 from 9.2.0.7. however i want to downgrade now. I have followed the document 4547809 mentioned. Now the real issue is when i restored the oracle_home (9.2.0.7) and execute sqlplus /nolog here is error message shown
    bash-2.05$ sqlplus /nolog
    bash: /oracle/test/920_64/bin/sqlplus: No such file or directory
    bash-2.05$ lsnrctl
    bash: /oracle/test/920_64/bin/lsnrctl: No such file or directory
    Please help
    thanks in advance

    Hi,
    Thanks for reply you are right
    ls -l /oracle/test/920_64/bin/sqlplus was not exist. However i copied everything from the backup.
    I'm trying again
    cp -r bk_test_home/* /oracle/test/920_64/*
    still i couldn't the file however it exist in bk_test_home. please suggest
    Thanks and regards

  • Issues with Custom Chart

    Hi,
    I am facing some issues with custom charts.
    1. X Axis value is getting cut off. Given date as x axis parameter and last 2 digits of date is getting cut off. (format like 19-Apr-2011T00:00:00). And this value cut of happening only for custom chart.
    2. On right click of the custom chart, when i am selecting Preview, it opens a new pop up window with and error as Error: "Application error occurred during the request processing.". No preview is being generated.
    3. In Server Scaling, i checked Use global auto scaling, and many times it is showing improper y axis or mutiple y axis values with the same value or it is displaying improper global range
    kindly help
    Regards
    Muzammil

    Muzammil,
    Without seeing your data and your chart configuration, it is difficult to understand exactly the issues you are encountering.  I have the same JRE and the same version and build of MII as you.  I have no difficulty with the scaling or with Global Range, but problems displaying the date in my tests.
    I would suggest the you enter a ticket into the SAP Support System, and enclose a  copy of your data (run the query, use Browser with Content Type = text/xml) and export a copy of you display template.
    Lastly, what type of query are you using - sql, tag?
    Kind Regards,
    Diana Hoppe

  • Issues with Safari 3.0.1 for windows

    Issues with Safari 3.0.1 for windows (at work):
    Lenovo T60 with intel core duo T7200 @2.00Ghz plus additional monitor (Lenovo ThinkVision) in extended desktop mode running Windows XP Pro 2002, SP2
    1. Taskbar is configured to autohide: when Safari is the top (active) window, it remains on top. If the taskbar pops up, it does so behind the Safari window, because I cannot see it.
    2. If an open Safari window is dragged to the external (secondary) monitor, then maximized, it disappears to the side. It is not closed. I can still find it via Alt-tab or in the task bar and can, by right-clicking ‘Move’ from the taskbar use the arrow keys to move the window back into place. Clicking to reduce the window, then re-maximizing leads to the window disappearing to the side again.
    3. In general my impression is that this does not function at a ‘beta’ level, but more of an ‘alpha’ level. Still very buggy.
    Jcw
    iMacIntel Duo 2Gh   Mac OS X (10.4.7)   1G-RAM, 250vRAM
    iMacIntel Duo 2Gh   Mac OS X (10.4.7)   1G-RAM, 250vRAM

    This is a beta...thats why they give you the option to report probs via the bug icon. Since you are having these probs try and report them, I am not sure if apple has the time to scan these forums to try and find the big probs that people are having. So unless you report bugs, (and wait until the final realease) then they might never get noticed and or fixed.

  • I am having a issue with getting data useage alerts for my iphone 4s

    I am having a issue with getting data useage alerts for my iphone 4s from AT&T.  I do not download anything huge at all.
    I looked into it and figured out that the phone dials out nightly at 12:29am every night.   I went into my settings and went to general..about..diagnostics and useage..then diagnostics and useage data to see this.  I then clicked don't send...but I am still getting useage alerts.  Can anyone help me please...
    Thanks

    Honestly, from reading the thread linked, they all come off as a bunch of whiney people that cannot be bothered to help themselves.
    Little to nothing in that thread indicates an issue beyond inept consumers.  Yes, I read several pages on the incessant gripes.  Very few made any actual attempts to troubleshoot issues before whining about the "Apple issue" and those that did actual troubleshooting got their issues resolved.
    So no, Apple has nothing to fix beyond a few specific devices that are experiencing hardware issues.
    If you have actually put forth effort and done the basic troubleshooting, take the device to Apple for evaluation and possible replacement.  Whining will get nothing accomplished.

  • Can anyone help me with getting the best setting for me system

    can anyone help me with getting the best setting for me system on cpufan it says my temp is 38c but on corecentre it says 42c can anyone help get my system overclocked any more but keeping it stable as well thanx in advance for the help  

    my corecenter temp sometimes says im at 60 cel at idle....and i have the most recent update...i would rely on speedfan for temp control...core center seems to always read 3 degrees higher than speedfan on my pc....
    i wouldnt be too concerned...those temps are pretty low to begin with.

  • Issue with customer exit for copying one variable value to another

    Hello Gurus,
    I need to copy the value of a single value variable into another single customer exit variable.
    I coded as below.
      WHEN 'customer_exit_var'.
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
          WHERE VNAM = 'user_input_Variable'.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
            L_S_RANGE-HIGH = ''.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
    I used the condition <= for the customer exit variable in the report. But, it is considering only single value, but not all the values <= to the give value.
    Please help me in this regard,
    Thanks,
    Aarthi.

    Thanks for your immediate response Govind.
    My report is restricted based on two dates. Date1 and Date2. Need to consider all records whose dates are <= Date1 and <= Date2.
    Date1 and Date2 should have same values. But user inputs only Date1.
    So, I created Date1 as Single, User Input Variable restricted the query with <=Date1.
    Next I created Date2 as Single, Customer Exit Variable and restrcited the Query with <=Date2.
    In CMOD I used the above code to assigne Date1 Value to Date2.
    When I execute the report, say I give todays date in the report (Dec, 12, 2007). Date2  has to consider all the values <= Dec 12, 2007. But, in my case it is considering only Dec 12, 2007, but not the before dates.
    So, Please help me in solving this problem.
    Thanks,
    Aarthi.

  • Performance issues with query input variable selection in ODS

    Hi everyone
    We've upgraded from BW 3.0B to NW04s BI using SP12.
    There is a problem encountered with input variable selection. This happens regardless of using BEx (new or old 3.x) or using RSRT. When using the F4 search help (or "Select from list" in BEx context) to list possible values, this takes forever for large ODS (containing millions of records).
    Using ST01 and SM50 to trace the code in the same query, we see a difference here:
    <u>NW04s BI SQL command</u>
    SELECT                                                                               
    "P0000"."COMP_CODE" AS "0000000032" ,"T0000"."TXTMD" AS "0000000032_TXTMD"                             
    FROM                                                                               
    ( "/BI0/PCOMP_CODE" "P0000" ) LEFT OUTER JOIN "/BI0/TCOMP_CODE" "T0000" ON  "P0000"."COMP_CODE" = "T0000
      "."COMP_CODE"                                                                               
    WHERE                                                                               
    "P0000"."OBJVERS" = 'A' AND "P0000"."COMP_CODE" IN ( SELECT "O"."COMP_CODE" AS "KEY" FROM              
      "/BI0/APY_PP_C100" "O" )                                                                               
    ORDER BY                                                                               
    "P0000"."COMP_CODE" ASC#                                                                               
    <u>BW 3.0B SQL command:</u>
    SELECT ROWNUM < 500 ....
    In 3.0B, rownum is limited to 500 and this results in a speedy, though limited query. In the new NW04s BI, this renders the selection screen unusable as ABAP dumps for timing out will occur first due to the large data volume searched using sequential read.
    It will not be feasible to create indexes for every single query selection parameter (issues with oerformance when loading, space required etc.). Is there a reason why SAP seems have fallen back on a less effective code for this?
    I have tried to change the number of selected rows to <500 in BEx settings but one must reach a responsive screen in order to get to that setting and it is not always possible or saved for the next run.
    Anyone with similar experience or can provide help on this?

    here is a reason why the F4 help on ODS was faster in BW 3.x.
    In BW 3.x the ODS did not support the read mode "Only values in
    InfoProvider". So If I compare the different SQL statements I propose
    to change the F4 mode in the InfoProvider specific properties to
    "About master data". This is the fastest F4 mode.
    As an alternative you can define indexes on your ODS to speed up F4.
    So would need a non-unique index on InfoObject 0COMP_CODE in your ODS
    Check below for insights
    https://forums.sdn.sap.com/click.jspa?searchID=6224682&messageID=2841493
    Hope it Helps
    Chetan
    @CP..

  • Issue with customer Incoming Payment

    Hi Gurus,
    I need your help related to an issue with Incoming customer payment. This is the first time I am doing this Incoming payment set-up. I have odne the payment program set-up for outgoing payments. I need to configure the automatic payment program for incoming payments. After the payment run is successfully executed, we need to create and send Idoc's to the bank. This process of payment run and Idoc creation is being used successfully for outgoing payments.
    From configuration side, I have created a new payment method and have set it up for incoming payments. I have selected ACH as format and PPD as format supplement. I did the bank set-up and have assigned a partner profile to it. I have assigned a reference key 17 in the SPRO-> Print->Payment media.
    The issue is that when I run the payment run for customer open item, the payment run is successful and the item gets cleared but no Idoc's are being generated. I have entered my House bank and account number in the variant as well. I am getting the following error:
    Step 001 started (program SAPFPAYM_SCHEDULE, variant &0000000000869
    No variants found for format ACH
    No Payment Media Created in Format 100
    I would really be thankful if you can help me in resolving this issue. I am not sure which step I am missing.
    Thanks,
    Best Regards,
    Shalu

    Hi Lakshmipathi,
    Yes the Document split has been activated. This issue is the specific one. We have different C&F location. Sales happens accross India. Hence we have created the Business area concept for each location to get the location wise balance sheet. I have also activated the zero balancing for Profit center and also Business area so that i can derive the Location wise Balance sheet.
    Now the sales invoice has been processed from C&F Location. Customer deposit the Cheque directly to the Head office Bank and not at the C&F Location bank. I don't want to clear the existing open item because 50% of the cheque gets bounced. So i am booking the incoming payment without clearing the open item.
    While processing the incoming payment user is entering the C&F location business area in the customer line item (Credit line item) and Head office business area for the Bank line item as the bank is at the Head office so that we can arrive the Balance sheet.
    Now system is not deriving the profit center for the customer line item even though the business area wise zero balance has been activated. Recon account field status group has market as optional for profit center but in F-28 i am not able to get the profit center field (Because it is balance sheet item).
    The Document type already been configure for Document split and the Recon account also categorised as Customer inthe doc splitting. I don't have any problem with document split other than this issue.
    For this issue anything can be done in the document split??
    Regards,
    Devendran

  • Error creating custom reports. Permissions issue with custom reports

    I am having permission issues with reports. I am building a new Configuration Manager  2012 infrastructure and I have configured the Site server on Server1 and the DB is on Server2. Server2 also hosts the Reporting Point and SSRS roles/features. If
    I look in Monitoring at the Site Status and Component Status are all green no issues with the setup.
    Running SQL 2008 SP2 (no CUs). I have a service account that I used to install Configuration Manager and SQL. This service account is running the SQL service on Server2 and i am using the same account as the Reporting Services Point Account.
    I log into the SCCM console with a different user account, lets call it Admin1. This account is a member of the Full Administrator role. I can run any built in report.
    When I open the SSRS website and try to create a custom report I connect the DataSource using Windows Authentication. So the Datasource is connecting using the logged in users account. In this case Admin1. I test the connection and it connects fine.
    I test this query. (Select * from v_R_System) I only have about 10 workstations discovered so the report shouldn’t be very big. I get an error “The Select permission was denied on the object ‘v_R_System’, Database ‘CM_XXX’, schema ‘dbo’. (Microsoft sql server,
    Error: 229)”
    I have fixed the SELECT permission error by going into the database (using SQL Management studio) and granting Admin1 Select rights to the Configuration Manager database. I can now run the above query and make custom reports.
    My 2<sup>nd</sup> problem is that other members of the Full Administrator role cannot run these custom reports unless I go into the database and grant them the SELECT permission.
    Question:
    Should I have to manually go into the database to add SELECT permissions(i could use a group)? shouldnt Configuration Manager take care of this for me?
    Maybe the built in reports use the SQL service account rights and the custom ones do not? Am I doing something wrong with the Datasource when I create these custom reports?
    What is the correct process for creating custom reports?

    I think i am getting closer to a solution. After the Custom report is created. i can go back into the report. Delete the DataSource. Then browse for a dataSource. there is a datasource located in http://server2/reportserver/ConfigMgr_XXX/
    That datasource is used by all builtin reports. if you view the properties on the Credentials tab it is set to "do not use credentials" and the option is greyed out / cannot be changed.
    it looks like i still need the SELECT permissions on the database to create the report initially but at least i have solved the problem with viewing these reports.
    Can anyone confirm that what i did is correct?

  • Issue with mouseListener / global variables

    So in my project, im having an issue with incrementing a counter using mouseListener. i have 2 windows pop up telling the user whose turn it is and then that players dice roll. after this i want the program to wait untill the player moves their piece. after they have moved their full move, it should go on to the next player. the issue im having is getting the program to wait for the player to make his moves, and i cant quite get it to work. it either skips the move and goes to the next player or never sees that the player has moved fully.
    public int getTurnsLeft(){
    return turnsLeft;
    public void setTurnsLeft(int newTurnsLeft){
    turnsLeft = newTurnsLeft;
    }these are what im using for both my mouseListener release method and my playTurn method to get and set the number of moves left.
    public void mouseReleased(MouseEvent e) {
              if(playerPiece == null) return;
              playerPiece.setVisible(false);
              Component c =  playBoard.findComponentAt(e.getX(), e.getY());
              if (c instanceof JLabel){
                   Container parent = c.getParent();
                   parent.add(playerPiece);
                   setTurnsLeft(getTurnsLeft() + 1);
                   System.out.println(getTurnsLeft());
              else {
                   Container parent = (Container)c;
                   parent.add(playerPiece);
                   setTurnsLeft(getTurnsLeft() + 1);
                   System.out.println(getTurnsLeft());
              playerPiece.setVisible(true);
         }mouse release method
         public void playTurn(){
              JOptionPane.showMessageDialog(null, "Player " + this.getPlayerNum() + "'s turn");
              int turns = (int)diceRoll();
              this.setMoveCount(turns);
              System.out.println(turns);
              int turnCheck = 0;
              while(turnCheck == 0){
                   System.out.print(getTurnsLeft());
                   if(getTurnsLeft() < turns)
                        turnCheck = 0;
                   else
                        turnCheck = 1;
              setTurnsLeft(0);
         }play turn method
    when i run this, the mouseRelease method can modify turnsLeft and get back the correct number, but in the playTurn method, i only get 0, which is what turnsLeft starts at. shouldnt they both get the same value, since there getting the value from the same source? or is the while loop the issue here?

    Your turnsLeft is really deceptively named, it is actually the number of steps taken during the current turn. Better rename it for clarity.
    The problem seems to be in your threading, I don't see how the while loop can end ('never sees that the player has moved fully'?) unless the diceRoll returns zero ('skips the move').
    What you should do is print out that diceRoll for more information (why doesn't it return an int? Use random.nextInt(maxSteps) + 1).
    And probably the end-of-turn check should be in setTurnsLeft(). You need to store the 'number of step this turn' as a class variable.
    So rename:
    playTurn -> startTurn
    turns -> steps
    turnsLeft -> stepsTaken
    setTurnsLeft(int) -> completeStep() which checks if stepsTaken >= steps and if yes calls completeTurn() which can check for a win or call the other players startTurn().

  • Problem with customer exit variable that is input ready as well

    Hello all,
    I'm facing an issue with a customer exit variable that again has been defined as input ready. I'm not sure why it is working incorrectly and I#m wondering if this is a bug or if I do s.th. stupid.
    The problem is that in the exit program ZXRSRU01 this varibale does not go into the program code I have prepared for this variable. I have added entry points for all three i_step values 1,2,3, but the code will never be touched and in debugging I can see that it simply pypasses the code for this variable.
    I have tried to enter a value or to leave it blank, no difference.
    When I run another test by just using a customer exit variable w/o input ready capability, then I have no issue, the exit does exactly what I have coded.
    Does this mean, that a customer exit variable along with input readiness dows not work ?????
    You may ask why I need this variable. Well, my intention is to use the input value of this variable A to derive other values for a complete different variable B. Afterwards I want to erase the input given into variable A to have it blank.
    Any comments are appreciated
    Thanks

    Hi Heiko,
    I assume A & B variables are defined on different Characteristics. If you wish to derive B based on A, you can create the Query Characteristic Restriction on B & have a dummy RKF restricted on A whose processing is by Manual Input; where processing of B is by Customer Exit. In istep 2 you can check for B, read A & derive B. There would not be a need to blank out A since the Query would not be restricted on A - you can hide the dummy RKF from showing in the output. Just a thought.
    --Priya

  • RSCRM: Query date with customer exit variable

    Hi All,
    Is there any way to run the RSCRM transaction with a query with a customer exit variable for a date characteristic?
    The issue is that the query ran ok but the variable is not being updated when the RSCRM query is running with a background job or a process chain.
    Thanks in advance
    EV

    I do not think you can select Customer Exit variable, if you see the type is selected to Char Value Variables and it is not editable.
    It would be suggested to go for Customer Exit procesing type for your text variable.
    Cheers,
    Neel.

  • Issue with custom receive Pipeline component

    I have been facing issue with creating a custom receive pipeline component. The Pipeline is to receive large file, if the file size is large it has to read the incoming stream to a folder and pass only some meta data through the MessageBox. The Execute method
    I am using is,
    #region IComponent Members
    public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)
    if (_largeFileLocation == null || _largeFileLocation.Length == 0)
    _largeFileLocation = Path.GetTempPath();
    if (_thresholdSize == null || _thresholdSize == 0)
    _thresholdSize = 4096;
    if (pInMsg.BodyPart.GetOriginalDataStream().Length > _thresholdSize)
    Stream originalStream = pInMsg.BodyPart.GetOriginalDataStream();
    string largeFilePath = _largeFileLocation + "\\" + pInMsg.MessageID.ToString() + ".zip";
    FileStream fs = new FileStream(largeFilePath, FileMode.Create);
    // Write message to disk
    byte[] buffer = new byte[1];
    int bytesRead = originalStream.Read(buffer, 0, buffer.Length);
    while (bytesRead != 0)
    fs.Flush();
    fs.Write(buffer, 0, buffer.Length);
    bytesRead = originalStream.Read(buffer, 0, buffer.Length);
    fs.Flush();
    fs.Close();
    // Create a small xml file
    string xmlInfo = "<ns0:MsgInfo xmlns:ns0='http://SampleTestPL.SchemaLocation'><LargeFilePath>" + largeFilePath + "</LargeFilePath></ns0:MsgInfo>";
    byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(xmlInfo);
    MemoryStream ms = new MemoryStream(byteArray);
    pInMsg.BodyPart.Data = ms;
    return pInMsg;
    #endregion
    Here I want the xml to be dropped in to the File share Eg: E:\Dropbox\PL\send and and the entire message to be dropped in the folder Eg: E:\Dropbox\sendLarge. so in the ReceivePipeline properties i set like
    And in the send port the destination i give is E:\Dropbox\PL\send.
    The issue is both the xml and the message are getting dropped in to the same folder E:\Dropbox\PL\send and the message is not getting dropped in E:\Dropbox\SendLarge. Any help is greatly appreciated.

    using System;
    using System.Collections.Generic;
    using System.Text;
    using Microsoft.BizTalk.Message.Interop;
    using Microsoft.BizTalk.Component.Interop;
    using System.IO;
    namespace Sample.ReceivePipelineLargeFile
    [ComponentCategory(CategoryTypes.CATID_PipelineComponent)]
    [ComponentCategory(CategoryTypes.CATID_Decoder)]
    [System.Runtime.InteropServices.Guid("53fd04d5-8337-42c2-99eb-32ac96d1105a")]
    public class ReceivePipelineLargeFile : IBaseComponent,
    IComponentUI,
    IComponent,
    IPersistPropertyBag
    #region IBaseComponent Members
    public string Description
    get
    return "Pipeline component used to receive large file and save it ina disk";
    public string Name
    get
    return "ReceivePipelineLargeFile";
    public string Version
    get
    { return "1.0.0.0";
    #endregion
    #region IComponentUI Members
    public IntPtr Icon
    get
    return new System.IntPtr();
    public System.Collections.IEnumerator Validate(object projectSystem)
    return null;
    #endregion
    #region IPersistPropertyBag Members
    private string _largeFileLocation;
    private int _thresholdSize;
    public string LargeFileLocation
    get { return _largeFileLocation; }
    set { _largeFileLocation = value; }
    public int ThresholdSize
    get { return _thresholdSize; }
    set { _thresholdSize = value; }
    public void GetClassID(out Guid classID)
    classID = new Guid("B261C9C2-4143-42A7-95E2-0B5C0D1F9228");
    public void InitNew()
    public void Load(IPropertyBag propertyBag, int errorLog)
    object val1 = null;
    object val2 = null;
    try
    propertyBag.Read("LargeFileLocation", out val1, 0);
    propertyBag.Read("ThresholdSize", out val2, 0);
    catch (ArgumentException)
    catch (Exception ex)
    throw new ApplicationException("Error reading PropertyBag: " + ex.Message);
    if (val1 != null)
    _largeFileLocation = (string)val1;
    if (val2 != null)
    _thresholdSize = (int)val2;
    public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
    object val1 = (object)_largeFileLocation;
    propertyBag.Write("LargeFileLocation", ref val1);
    object val2 = (object)_thresholdSize;
    propertyBag.Write("ThresholdSize", ref val2);
    #endregion
    #region IComponent Members
    public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)
    if (_largeFileLocation == null || _largeFileLocation.Length == 0)
    _largeFileLocation = Path.GetTempPath();
    if (_thresholdSize == null || _thresholdSize == 0)
    _thresholdSize = 4096;
    if (pInMsg.BodyPart.GetOriginalDataStream().Length > _thresholdSize)
    Stream originalStream = pInMsg.BodyPart.GetOriginalDataStream();
    string largeFilePath = _largeFileLocation + "\\" + pInMsg.MessageID.ToString() + ".zip";
    FileStream fs = new FileStream(largeFilePath, FileMode.Create);
    // Write message to disk
    byte[] buffer = new byte[1];
    int bytesRead = originalStream.Read(buffer, 0, buffer.Length);
    while (bytesRead != 0)
    fs.Flush();
    fs.Write(buffer, 0, buffer.Length);
    bytesRead = originalStream.Read(buffer, 0, buffer.Length);
    fs.Flush();
    fs.Close();
    // Create a small xml file
    string xmlInfo = "<ns0:MsgInfo xmlns:ns0='http://SampleTestPL.SchemaLocation'><LargeFilePath>" + largeFilePath + "</LargeFilePath></ns0:MsgInfo>";
    byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(xmlInfo);
    MemoryStream ms = new MemoryStream(byteArray);
    pInMsg.BodyPart.Data = ms;
    return pInMsg;
    #endregion
    Thanks Osman Hawari, for trying to help me out.

Maybe you are looking for

  • JTextPane with hyperlinks

    Hi, I?m building a little IRC client. I?m using a swing JtextPane but my problem is that I can?t insert hyperlinks into it. The JtextPane is based on a DefaultStyledDocument, I have created a Style called Hyperlink. Style style4 = myStylePane.addStyl

  • Kernel Panic Followed by Selective Application Crashes

    I recently encountered a problem with my 15-inch MacBook Pro that I have not been able to solve. I was attempting to log-in to a university wireless network as a guest (University of Virginia) with the help of local staff. I turned on Aiport, located

  • How do I make a video using my pictures and iTunes ?

    How do I make a music video with my pictures and iTunes ? Do I need a special App or Program ?

  • Employee termination in HR system deletes BP role-BUP003 in CRM.

    Hi all, HR system is integrated with CRM. When Employee is terminated in HR system it deletes BP role-BUP003 in CRM.Is this a standard behaviour? Is ther anyway we can stop this? Thanks S

  • Regex, String Range

    Hello please, Appreciate your help here. I have a field string that wants to find if that exists between two range strings on character basis. Ex: String lower boundary : "ABD" String upper boundary : "ALGKP" field String : "ABE" Now the field string