Import a Grid Data Slice
Imports a Planning REST data grid.
writeToInput defaults to false, which selects output-value import. Set writeToInput to true to select input-value import. Both modes are subject to the applicable cell eligibility checks. The data grid must contain Scenario in POV, Time in columns, and an Account (plus any applicable custom dimensions) in each row header. Always supply numeric cell values as raw, unscaled values. This applies whether writeToInput is true or false. Do not supply values scaled for display in thousands, millions, or other model/account display units.
Required Roles
Service Administrator
REST Resource
POST
/HyperionPlanning/rest/sm/v1/applications/{application}/models/{model}/importdataslice
Request
Parameters:
Table 3-705 Parameters
| Name | Description | Type | Required |
|---|---|---|---|
writeToInput |
Selects the import mode: false (the default) imports output values; true imports input values. Both modes are subject to the applicable cell eligibility checks. Supply raw, unscaled numeric values in either mode. Default: false | boolean | No |
missingValueOption |
Controls how missing values are handled during import. Values are accepted case-insensitively. Default: ZERO | string; IGNORE, INPUT_ZERO, NAN, ZERO | No |
valuePreservationOption |
Controls whether input or output values are preserved during import. Values are accepted case-insensitively. Default: INPUT_VALUES | string; INPUT_VALUES, OUTPUT_VALUES | No |
dataGrid |
The data grid to import. Provide Scenario members in POV, Time members in columns, and Account intersections in row headers. All numeric row data values must be raw and unscaled. | object | Yes |
dataGrid.pov |
POV member names, including the Scenario member. Minimum items: 1 | array of string | Yes |
dataGrid.columns |
Column member sets, typically Time members. Minimum items: 1 | array of array | Yes |
dataGrid.rows |
Rows to import. Each row must identify a valid account intersection. Minimum items: 1 | array of object | Yes |
dataGrid.rows[].headers |
Account ID followed by any required custom-dimension members. Minimum items: 1 | array of string | Yes |
dataGrid.rows[].data |
Values to import. Every numeric value must be raw and unscaled; do not apply account or model display scaling. Use a string such as #missing for a missing value. Minimum items: 1 | array of values | Yes |
Example URL:
https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/importdataslice
Request body
{
"writeToInput": false,
"dataGrid": {
"pov": [
"Base"
],
"columns": [
[
"2024",
"2025"
]
],
"rows": [
{
"headers": [
"v1000:010"
],
"data": [
1250.0,
1350.0
]
},
{
"headers": [
"v1000:020"
],
"data": [
200.0,
225.0
]
},
{
"headers": [
"v1020"
],
"data": [
"#missing",
500.0
]
}
]
}
}
Response
Supported Media Types: application/json
Table 3-706 Parameters
| Name | Description |
|---|---|
numAcceptedCells |
Number of cells reported as accepted for import. |
numUpdateCells |
Number of cells reported as updated during import. |
numRejectedCells |
Number of cells reported as rejected during import. |
rejectedCellsWithDetails |
Rejected cells and their reported reasons. |
rejectedCellsWithDetails[].memberNames |
Members that identify the affected cell. |
rejectedCellsWithDetails[].reason |
Reason reported for a rejected cell. |
Example of Response body
{
"numAcceptedCells": 4,
"numUpdateCells": 2,
"numRejectedCells": 2,
"rejectedCellsWithDetails": [
{
"memberNames": [
"v1000:020",
"Base",
"2024"
],
"reason": "Account ID v1000:020 is either a calculated account or does not accept import."
},
{
"memberNames": [
"v1000:020",
"Base",
"2025"
],
"reason": "Account ID v1000:020 is either a calculated account or does not accept import."
}
]
}
Table 3-707 Status Codes
| Code | Description |
|---|---|
400 |
Invalid request, malformed query JSON, invalid parameter, or service validation failure. |
401 |
Authentication is required. |
403 |
The authenticated caller is not authorized. |
404 |
Application or requested sub-resource was not found. |
500 |
Unexpected server error. |
Sample cURL Command
curl -X POST -u '<USERNAME>:<PASSWORD>' -H 'Content-Type: application/json' --data '{"writeToInput":false,"dataGrid":{"pov":["Base"],"columns":[["2024","2025"]],"rows":[{"headers":["v1000:010"],"data":[1250.0,1350.0]},{"headers":["v1000:020"],"data":[200.0,225.0]},{"headers":["v1020"],"data":["#missing",500.0]}]}}' 'https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/importdataslice'