Forum Discussion

JakeBrown's avatar
JakeBrown
New Contributor
3 years ago

Data Imports

I have currently set up a new data source and associated transformation rules (and allocated to the appropriate workflow). Data importing is correctly working for 2022 time period, however I am getting the following error in any other time period......

I have got the Scenario as 'Current Datakey' and Time as matrix datakey in my columns

Summary: No valid DataKeys (Scenario / Time) found in data source.  Review the source data load processing log and check one-to-one transformation rules to ensure that you have created proper Scenario and Time dimension rules for this data source.

 

Any ideas? I am assuming this might be one simple setting change somewhere 

  • Henning's avatar
    Henning
    Valued Contributor II

    Hi Jake, do you have the time mappings in place for the time period you are loading data to? You probably have, but that is the first thing to check. Are you using the same scenario for the load that returns the error? If not, do you have a mapping set up for this? Also this, you probably have in place.
    Other than that, a few screenshots and more details might help. 

    • JakeBrown's avatar
      JakeBrown
      New Contributor

      Hi - I believe I have everything in place (as the import works perfectly fine for 2022, just not for any other year....

      I have looked at the log and its generating the following error;

      Time Outside Workflow View.............. 11

      My Time generation is as follows (then M1,M2...etc in difference columns) 

      Dim sYear As String = api.Parser.DelimitedParsedValues(2)

      Return sYear & "M1"

      • Henning's avatar
        Henning
        Valued Contributor II

        Do you have more than one year in your load file? If so, did you set this to True?

         

  • Jake

    Print the sYear to error log and see what you get. Sometimes there might be a space etc. I assume you have a transformation rule for all the time periods you're loading data to. Are you able to see any data rows in the log file?

    Sai

    • JakeBrown's avatar
      JakeBrown
      New Contributor

      Hi Sai 

      We are reasonably new to OneStream.... Do you have any guidance on how to print the SYear to error log?

      I think this is what is causing the issue as I have just enabled multi year loads and my file (when trying to load into 2019) imported into 2022. Therefore making my think my sYear formula is defaulting to 2022 on all import years

      Jake

      • Sai_Maganti's avatar
        Sai_Maganti
        Contributor II

        Jake

        Add the following line after you declare the sYear. Then you can check what is being output in the error log.

        brapi.ErrorLog.LogMessage(si, sYear)

        Sai