# Not able to generate rollback scripts by tag in offline mode

**URL:** <https://forum.liquibase.org/t/not-able-to-generate-rollback-scripts-by-tag-in-offline-mode/3330>\
**Category:** General Discussion\
**Created:** [February 12, 2016, 7:43pm UTC](https://forum.liquibase.org/t/not-able-to-generate-rollback-scripts-by-tag-in-offline-mode/3330 "2016-02-12T19:43:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![un1382561729492r88id](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@un1382561729492r88id](https://forum.liquibase.org/u/un1382561729492r88id)\
**Post date:** [February 12, 2016, 7:43pm UTC](https://forum.liquibase.org/t/not-able-to-generate-rollback-scripts-by-tag-in-offline-mode/3330/1 "2016-02-12T19:43:00Z")

</div>

I am not clear what you are trying to do - what are the exact commands you used, and what are the relavant input files used?&nbsp;

I am not clear what your expected result is, nor is it clear what the actual result was. Without those three things, it is very difficult to diagnose the problem.

Steve Donie  
Principal Software Engineer  
Datical, Inc. [http://www.datical.com/](http://www.datical.com/)

---

<div class="post-metadata">

**Author:** ![SydubabuVasantha](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@SydubabuVasantha](https://forum.liquibase.org/u/SydubabuVasantha)\
**Post date:** [February 12, 2016, 7:43pm UTC](https://forum.liquibase.org/t/not-able-to-generate-rollback-scripts-by-tag-in-offline-mode/3330/2 "2016-02-12T19:43:00Z")

</div>

I am trying to generate a rollback script by rollbackTag using maven liquibase plugin as follows in offline mode. It failed to find a tag in offline database(nothing but a changelog.csv file generated on process). It working by rollbackCount.

I am suspecting the problem with generated changelog file in offline mode It’s not updating changeset tag information in it.

```
org.liquibase

liquibase-maven-plugin

${liquibase.maven.plugin.version}

true

write-application-rollback-script-sql

generate-sources

changelog/install-hub.xml

env/offline.properties

${project.basedir}/target/liquibase/RollbackPatchScript.sql

v3.1.0-1896

rollbackSQL
```
 
```

```
 
```
offline.properties
```
 
```
```
url:
```
```

---

<div class="post-metadata">

**Author:** ![un1455275954414r70id](https://avatars.discourse-cdn.com/v4/letter/u/9d8465/32.png) [@un1455275954414r70id](https://forum.liquibase.org/u/un1455275954414r70id)\
**Post date:** [February 12, 2016, 7:43pm UTC](https://forum.liquibase.org/t/not-able-to-generate-rollback-scripts-by-tag-in-offline-mode/3330/3 "2016-02-12T19:43:00Z")

</div>

In simple words I want to generate a rollback sql script for a particular tag using maven plugin. I am trying with above approach and it doesn’t work for me. Plz let me know any alternatives.

---

<div class="post-metadata">

**Author:** ![un1455275954414r70id](https://avatars.discourse-cdn.com/v4/letter/u/9d8465/32.png) [@un1455275954414r70id](https://forum.liquibase.org/u/un1455275954414r70id)\
**Post date:** [February 12, 2016, 7:43pm UTC](https://forum.liquibase.org/t/not-able-to-generate-rollback-scripts-by-tag-in-offline-mode/3330/4 "2016-02-12T19:43:00Z")

</div>

In simple words I want to generate a rollback sql script for a particular tag using maven plugin. I am trying with above approach and it doesn’t work for me. Plz let me know any alternatives.

---

<div class="post-metadata">

**Author:** ![un1382561729492r88id](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@un1382561729492r88id](https://forum.liquibase.org/u/un1382561729492r88id)\
**Post date:** [February 12, 2016, 7:43pm UTC](https://forum.liquibase.org/t/not-able-to-generate-rollback-scripts-by-tag-in-offline-mode/3330/5 "2016-02-12T19:43:00Z")

</div>

The simple words are the problem here. Too simple. The only way anyone can help you is if you explain the problem in more detail. Right now, I don’t even understand your objective. What should the rollback script roll back? What do expect the end state of the system to be? What have you tried that didn’t work? What problems did you experience?

Perhaps you could read this article - it explains how to ask questions that get answers. If you plan on doing this for a living, it is very good advice.

[http://www.catb.org/esr/faqs/smart-questions.html](http://www.catb.org/esr/faqs/smart-questions.html)

Steve Donie  
Principal Software Engineer  
Datical, Inc. [http://www.datical.com/](http://www.datical.com/)
