Create empty asset error

Hello,
I am getting an error while creating empty assets. The same code was running well yesterday but not today. I have not made any changes anywhere. I just shut down my system yesterday and start today. Please let me know what's wrong... 
Here is the code : 
//Create the empty asset for the upload file
private string CreateEmptyAsset(string fileName)
var sasLocator = string.Empty;
try
// Assets.Create creates the asset and uploads the specified file.
_context = new CloudMediaContext(_accountName, _accountKey);
IAsset _theAsset = _context.Assets.CreateEmptyAsset(fileName, AssetCreationOptions.None);
this._theAsset = _theAsset;
sasLocator = GetAssetSasUrl(_theAsset, TimeSpan.FromMinutes(60));
catch (Exception exception)
MessageBox.Show("Unable to create empty asset.\n" + exception.Message,
Resources.frmUpload_BtnAddFileClick_Upload_Footage, MessageBoxButtons.OK,
MessageBoxIcon.Warning);
return sasLocator;
Awaiting fast reply.. It's a critical time here.
Thanks
Dev

Hello All,
My problem is solved now. I create the asset using :
var
asset
=
mediaContext.Assets.Create(assetName,
assetCreationOptions);
and to commit/publish
it I write :
//Publish the asset
try
_theAsset.Update();
var assetFiles = _theAsset.AssetFiles;
foreach (var _file in assetFiles)
_file.IsPrimary = true;
_file.ContentFileSize = fileInfo.Length;
_file.Update();
catch (Exception e)
This solved my partial upload too. At the time of partial upload I am not creating asset just publishing it.
Thank you very much for your great support. Keep it up.  :)
Thanks again
Dev

Similar Messages

  • While I have create group asset error occured Assert condition is voilated?

    Hi  All,
    while I have create group asset error occured Assert condition is voilated . Its runtime error .
    please can you send screen shot  screen layout of group asset in asset master data?
    Thanks
    Shailesh.
    9604645129.

    Hi
    what is the message number/ Dump ananlysis (check it in ST22) ?
    VVR

  • Create same asset error

    I have one old asset 4230001 in company code 6700, capitalization date: 25.10.2009, first acquisition date:31.12.2009. APC value 3000,  NBV: 1000
    I try to duplicate asset 42300001in company code 5300, thus I create asset 42300009 with same capitalization date 25.10.2009.
    but when I enter ABNAN, I have difficulty in choosing correct posting date, amount posted and original val date
    even if I choose 31.12.2009 as original val date, the new asset 42300009 's first acquisition date still be 25.10.2009.
    also I can only choose cost element as offsetting account, can i enter balance sheet account for ABNAN?
    any one know how to fix?
    do i need to design a new transaction type for ABNAN?

    Hi
    Inter company Asset transfer  - ABT1N
    Go to Inter company transfer TAB
    select indicatior Existing Asset and Company code
    Give Document Date
            Posting Date
             Asst value date----
    Asset Aquistion date
    click on Simulate
    Notice the both the company codes and Asset under each company codes.
    Save
    Thanks
    P J Anil Kumar

  • Error while creating the ASSET using LSMW BAPI method ( BUS1022 )

    Hello,
    Im creating assets using the below LSMW BAPI method
    Business Object      BUS1022     
    Method                     CREATEINCLVALUES
    Message Type         FIXEDASSET_CREATEINCLVALU
    Basic Type              FIXEDASSET_CREATEINCLVALU
    the following errors were triggered while populating the values to ACQ_VALUE and ORD_DEP value.
    Correction to ordinary dep. greater than acc. dep. in area 01
    Correction to ordinary dep. greater than acc. dep. in area 30
    Correction to ordinary dep. greater than acc. dep. in area 31
    Correction to ordinary dep. greater than acc. dep. in area 32
    if i pass only ACQ_VALUE, I am able to create the asset with out any issues.
    Can you guys plz guide me to fix this issue to create the asset with both ACQ_VALUE and ORD_DEP values??
    Cheers,
    Sriram.

    Hello,
    Review AO21.
    Regards
    Waza

  • Error while creating Group Asset

    Dear All
    While Creating Group Asset I am getting the Following error:
    No depreciation area in company code 1000 allows group assets.
    Message no. AY160
    Diagnosis
    You cannot create group assets in company code 1000. There are no depreciation areas that can manage group assets in this company code.
    Procedure
    Make sure that you really want to create a group asset in company code 1000.
    If so, then allow group assets in the desired depreciation areas.
    Please advice.
    Thanks & Regards
    Kanwaljit

    Hi,
    Check the config in OAYM and OAAX.
    Then your issue will get solved.
    Thanks,
    Srinu

  • Error while creating Legacy Asset using AS91

    Error is as follows
    E698 SYST: Abnormal termination (ANLB-LGJAN 1 not equal to ANLC-GJAHR
    In 2008 during implementation, there was a mis match between FI & AA.
    In AA Takeover values were not updated but GL entry was made. Now since depreciation is run, it is not allowing to update takeover values in AS92.
    Now the i have planned to follow this procedure
    Firstly Reset Depreciation
    Then to create new Assets in AA copying previous assets without Takeover values using AS 91 & update those takeover values in new assets.
    Then FI & AA values would match & then i can run depreciation.
    But in 2nd step i am stucked, as when i try creating new asset using AS91 it is giving above error.
    What should be date of legacy data transfer in spro? i have maintained 30.09.2008
    In OAAQ i have maintained closed FY =2007
    In OB52 i have Opened both 2008 & 2009 posting periods.
    What more has to be done?

    Hi Paul
    I have taken a production copy in different client & have done all these with the client's permission.
    Following are the reasons with example
    suppose these are 4 assets at the time of implementation
    1 Asset A       Acquisition value 100000/-      Accumulated Depreciation       20000/-
    2 Asset B       Acquisition value 200000/-      Accumulated Depreciation       30000/-
    3 Asset C       Acquisition value 300000/-      Accumulated Depreciation       40000/-
    4 Asset D       Acquisition value 400000/-      Accumulated Depreciation       50000/-
    In implementation following happened by mistakenly
    Asset A & B were properly created using AS91 & in GL also entry properly made using OASV
    but for Asset C, entry was made using OASV but in AA Tcode AS91 Asset Master was created but Takeover values were not updated.
    for Asset D entry was made in OASV but in AA Asset number was not at all created.
    so when you see asset master C in AW01N acquisition value is blank & planned depreciation is also missing.
    i think individually all data was not cross tallyied.
    So the Balance sheet is tallyied with entry in FI
    but
    in AA there are 100 assets without takeover values & 300 assets for which Asset Masters are not at all created in  AA.
    & depreciation for 2008 has been run on other assets excluding these 400 assets.
    So now AA closing cannot be done as the FI & AA balances are not reconciled.
    & now we have to update takeover values creating new asset masters using AS91 but system is not allowing us.
    Could you suggest some solution for these problems
    Thanks in Advance

  • Error when creating an asset

    Hi All,
    My client uses an year dependent fiscal yr variant. I have maintained values for period 2008 and 2009. And generated period controls for the Yr 2009. When I try to create an asset the following error occures
    SYST: Error when caclulating fiscal period --> F1
    Message no. AA655
    Diagnosis
    An error occurred while determining the fiscal period 00000000 in period version P1.
    Procedure
    There are three things which could lead to this error:
    1. The period version P1 allocated to the company code has not been created. In this case, you should create the period version.
    2. The period version has been created, however the allocation of calendar dates to the fiscal periods has not been correctly performed or in particular with calendar-dependent period versions has not been completely performed. Check whether the date entered 00000000 for period version P1 has been maintained and enter the missing period.
    3. The calendar date 00000000 is invalid. This is a system error. Contact your Systems Specialist.
    Pls give me a reason and a solution to this.
    Thanks & regards ,
    Maleeq

    Maleeg,
    Please make sure that you are using only one fiscal variant.
    It seems to me that your client has two dependent year fiscal variants: One for Accounting 'F1' and one for Fixed Assets P1, but you are only maintaing the accounting one F1. Check that you also have maintained the fiscal varsion P1.
    I think that is your problem.
    Hope this helps.
    Regards,
    GG

  • Error whle creating  Main Asset Master(AS01)

    Hi,
       while i was trying to create the asset master  , <b>ABAP run time error</b>  is displayed <b>"snap_no_new_entry"</b> and i could not able to save the asset master.
    please provide some solution for this problem.......
    i am working on SAP 6.0 version.

    1st check tcode as08
    A.

  • PI 7.11 - How to create a System Error in SXMB_MONI using a Java Mapping

    Hi
    We ve go a  Java Mapping in a File-to-HTTP Scenario. It works perfect except of one error case: if an empty source file or a source file with the wrong structure is delivered. In this case our Java Mapping forwards an empty payload to the HTTP channel. So, for PI is the mapping successful.
    I'd like to recognize this case and invoke a system error in the SXMB_MONI, so that this mapping will be stopped and our alerting concept informs the users. I know, how to recognize the case in Java but need to know how to create the System Error Status in the PI System.
    Thanks in advance
    Michael

    Hi Michael,
    Please refer here for the mapping API description:
    http://help.sap.com/javadocs/NW04S/SPS09/pi/com/sap/aii/mapping/api/package-summary.html
    You can use the StreamTransformationException exception describet there to raise an error from your Java mapping. Direct link:
    http://help.sap.com/javadocs/NW04S/SPS09/pi/com/sap/aii/mapping/api/StreamTransformationException.html
    You might also consider using the "Empty-File Handling" option in sender file CC to avoid processing empty files by PI.
    Hope this helps,
    Greg

  • ABAP Dump while creating Group Asset

    Hi all
    I am getting the following dump while creating Group Asset through AS21-
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    Except.                CX_SY_REF_IS_INITIAL
    Date and Time          19.11.2007 21:16:06
    Short text
         Access via 'NULL' object reference not possible.
    What happened?
         Error in the ABAP Application Program
    The current ABAP program "SAPLGLO_FIAA_SCREENS" had to be terminated because it
    has
    come across a statement that unfortunately cannot be executed.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
    caught in  procedure "SET_MANAGER_FOR_UPDATE" "(FORM)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component (variable: "GO_ASSET_MAINDATA").
    An object reference must point to an object (an instance of a class)
    before it can be used to access components.
    Either the reference was never set or it was set to 'NULL' using the
    CLEAR statement.
    Source Code Extract
    Line  SourceCde
      545 *      -->P_LS_WORK  text
      546 *      <--P_LO_ASSET_MANAGER  text
      547 *      <--P_LO_TIMEDPNDNT_MANGER  text
      548 *----
      549 FORM set_manager_for_update
      550        USING
      551          is_work TYPE raist03
      552        CHANGING
      553          co_asset_manager    LIKE go_asset_manager
      554          co_timedpndt_manger LIKE go_timedpndt_manager
      555          ct_err_msg          TYPE tt_err_msg.
      556
      557   DATA:
      558     ls_asset_maindata TYPE gty_s_asset_maindata,
      559     ls_anla_key       TYPE anla_key,
      560     ls_err_msg        LIKE LINE OF ct_err_msg.
      561
      562 * check operation
      563   IF is_work-kz      EQ con_ins AND
      564      is_work-flg_unr NE on.
      565
      566     MOVE-CORRESPONDING is_work TO ls_anla_key.
      567     ls_anla_key-mandt = sy-mandt.
      568     ls_anla_key-anln1 = is_work-anln1_new.
      569 * start of Note # 954513
      570     IF ls_anla_key-anln1 IS INITIAL.
      571       ls_anla_key-anln1 = is_work-anln1.
      572     ENDIF.
      573 * end of Note # 954513
    >>>>>     ls_asset_maindata = go_asset_maindata->get( ).
      576
      577 * clone time-independent asset data manager
      578     TRY.
      579         co_asset_manager = lcl_amd_mngr_clone_factory=>clone_asset_manager( ls_anla_key ).
      580
      581       CATCH cx_faa_asset.
    Any1 has a clue where I might be going wrong?
    Cheers
    Hrishi

    Hello Hrishi
    I have researched your issue and note 1063792 should resolve it. The
    SAP_APPL that it is included in is SAPKH60011. I recommend you to upgrade to the latest support package available to avoid eventual errors.
    For program errors you should open a support ticket in the SAP Service Market place.
    Regards
    Javier

  • I want to create an asset and add to existing asset class,

    Hi
    I am creating an asset builing,  and adding to asset class,  and when i am using the trans code: AS01 it showing an error , Customizing, inconsistency -Missing / incorrect  and entry in the table TO93B i am not able to understand what has to be done.
    and annother issue is
    i am using transacion code: f-30 , there r two customer,the company is dealing with ie: oswal and some X company , in 2004 they made for eg: 10000 down payment, and they have raised invoice for 5000, and remaining 5000 its showing as due amt, as it has to show advance amt.
    its showing an error, Consolidated companies TEIL and ' ' are different and  its also describing that the affiliuted company must be clear for the selected document type, in this case atleast town different companies  or a company in connection with a business partner who does not belong to a compnay are stated.
    i am not able to undrstand the meaning of it

    Hi,
    i think you need to check the Depreciation area setting for the company code. I think that one of the setting is missing. Please check whether you have done the following :
    Determinging the depreciation areas in the Asset class
    Specifying Max amount for the LVA Assets
    Hope this should solve your issue on the assets.
    I could not understand the issue on the F-30. It would be better if we can have the exact issue description.
    Regards
    Nambi

  • Unable to create an asset

    Dear All,
    While creating an asset for asset class came across an error message "Depr Key "LINS" not allowed (check your entry)"
    Need help to rectify this error.
    Regards,
    Sultan

    Dear Sultan,
    In this case you have not activated the depreciation key assigned to the depreciation area.
    To activate them path: IMG>FINANCIAL ACCOUNTING>ASSET ACCOUNTING>DEPRECIATION>VALUE METHOD>DEPRECIATION KEY>MAINTAIN DEPRECIATION KEY
    Best Regards,
    Mir

  • How to create an Assets Library using C# in SharePoint 2010?

    currentWeb.Lists.Add(
    "List Name",
    "List Description",
    SPListTemplateType.AssetsLibrary);
    This code does not work for me in Visual Studio. The SPListTemplateType enumerator does not have an assets library item.
    How can I programmatically create an Assets Library?

    To create an assets library you must activate first the Site Collection's Publishing Feature in order to set the availabilty of the "Asset Library" template.
    If not, no template on system and of course, error on code "Object reference not set to an Object......"
    Use this code:
    using (SPSite oSite = new SPSite(myUrl))
    if (oSite != null)
    using (SPWeb oWeb = oSite.OpenWeb())
    if (oWeb != null)
    oWeb.AllowUnsafeUpdates = true;
    //activating web feature
    Guid guidCollectionPublishingfeature = new Guid("F6924D36-2FA8-4f0b-B16D-06B7250180FA");
    //activating site feature first
    if (oSite.Features[guidCollectionPublishingfeature] == null)
    oSite.Features.Add(guidCollectionPublishingfeature, true);
    if (site.Features[guidCollectionPublishingfeature] != null)
    SPListTemplateCollection templateCol = web.ListTemplates;
    foreach (SPListTemplate t in templateCol)
    if (t.Name == "Asset Library")
    SPListCollection coll = web.Lists;
    Guid guid = web.Lists.Add("listname", "listdescription", t);
    coll[guid].Update();
    oWeb.AllowUnsafeUpdates = false;

  • SSIS creates empty flat fie, how to avoid that?

    I have a simple SSIS data export package - Data Flow task which takes data from db table and puts it in a flat file.
    SQL Agent is used to run this SSIS data export package every 2 minutes.
    Sometimes table is empty, does not have new rows that's why
    1 - empty file is being created
    2 - SQL Agent gave an error:  The step did not generate any output.  The return value was unknown.  The process exit code was -1073741819.  The step failed.,00:00:02,0,0,,,,0
    I placed a "Execute SQL Task" step to count rows in the source table and
    disable Data Flow task
    if user::count==0  - this still creates an empty file.
    Is there a proven workaround to use count variable and actually
    disable Data Flow task and avoid creating empty flat file???
    Are there any specific rules in setting up "result name" in "SQL Task" "result set" where you map Result Name and Variable Name?
    Should it be column name, like "count" for select count(abc) as
    count from TABLE
    Thank you in advance!

    Question about Precedence Constraint - should this work?
    In control flow:
    1st task
    "Execute SQL Task" step to count rows in the source table
    Next - Precedence Constraints - Expression - @[User::count]==0 (what should happen
    with 2nd task if expression condition is met?)
    2nd task: Data Flow which actually exports data from db and puts it into flat file.
    In this scenario empty file is still being created...is there something wrong with my Precedence
    Constraints - Expression - @[User::count]==0?
    Brba,
    Yes, there are 2 methods:
    method1
    Have the sql inside a execute sql task and obtain the rowcount into a variable. if the rowcount is greater than 0 then proceed to data flow task which will then execute sql
    again and push data into flat file.
    So you may set the precedence of the flow from Execute Sql task to Data flow task as an expression as :
    @[User::Count]>0
    i.e., only if its greater than zero, will the control even reach the DFT.
    MEthod2
    Similar method using @count variable. Have a data flow task followed by a file system task.
    Inside the DFT, have the Rowcount transformation between the source and destination that would obtin rowcount into @count variable.
    Now similar to above method, set precedence of the path (connnecting DFT and File System task) as expression such that @[User::Count] <=0 . So if rowcount IS zero, will reach FST - wherein you may program as DELETE FILE and select connection as flatfile
    conenction manager itself.
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • Create empty blob inside create method of entity object

    I would like to create an empty blob with this method:
    BlobDomain.createEmptyBLOB(java.lang.Object context)
    context - an internal framework context.
    The problem I've got it is to figure out what is the framework context and how to get one.
    thanks

    John,
    I did not try with af:popup. But I did try with custom error handler and it worked as if I thought.
    To help others I am explaining the steps below:
    1. Create the custom error handler(MyErrorHandler.java) class by extending it from oracle.adf.model.binding.DCErrorHandlerImpl. Make sure that your java class contains a no argument constructor.
    2. Override reportException() method by sending the arguments to super.report exception()
    3. write code to call javascript through Extended Render Service Kit.
    4. Open DataBindings.cpx and its property inspector
    5. Select the root node of DataBindings.cpx and add your custom error handler class (MyErrorHandler.java) to the attribute "ErrorHandlerClass"
    6. Run your code.
    Voila!!! It runs great!!!
    For more information, check http://docs.oracle.com/cd/E24382_01/web.1112/e16182/validation_model.htm
    V. Praveen

Maybe you are looking for